<!--
  
   Global.xaml
  
   Copyright (c) 2007 Mike Strobel
  
   This source code is subject to the terms of the Microsoft Reciprocal License (Ms-RL).
   For details, see <http://www.opensource.org/licenses/ms-rl.html>.
  
   All other rights reserved.
  
  -->
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    x:Class="Supremacy.Client.GlobalResources"
                    xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
                    xmlns:av="http://schemas.codeplex.com/wpfcontrib/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:scc="http://schemas.startreksupremacy.com/xaml/presentation"
                    xmlns:local="clr-namespace:Supremacy.Client"
                    xmlns:propeties="clr-namespace:Supremacy.Client.Properties"
                    xmlns:sys="clr-namespace:System;assembly=mscorlib"
                    xmlns:ui="clr-namespace:Supremacy.UI;assembly=SupremacyUI"
                    xmlns:game="clr-namespace:Supremacy.Game;assembly=SupremacyCore">

  <ResourceDictionary.MergedDictionaries>
    <ResourceDictionary Source="Converters.xaml" />
  </ResourceDictionary.MergedDictionaries>
  
  <ObjectDataProvider x:Key="Settings"
                      ObjectInstance="{x:Static propeties:Settings.Default}" />

  <Style x:Key="{x:Static SystemParameters.FocusVisualStyleKey}">
    <Setter Property="UIElement.SnapsToDevicePixels"
            Value="True" />
    <Setter Property="Control.Template">
      <Setter.Value>
        <ControlTemplate>
          <Rectangle StrokeThickness="1"
                     Stroke="#ffdfdfff"
                     StrokeDashArray="1 2"
                     StrokeDashCap="Flat"
                     StrokeEndLineCap="Flat"
                     StrokeLineJoin="Bevel"
                     StrokeStartLineCap="Flat"
                     Margin="-2,0,-2,0"
                     SnapsToDevicePixels="True" />
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Cursor x:Key="DefaultCursor">vfs:///Resources/Cursors/cursor.cur</Cursor>

  <!-- FONTS -->
  <!--<FontFamily x:Key="LCARS_DefaultFont">pack:///siteoforigin:,,,/Resources/Fonts/#Helvetica LT Std Ultra Compressed</FontFamily>
  <FontFamily x:Key="LCARS_ParagraphFont">pack://siteoforigin:,,,/Resources/Fonts/#Square721 Cn BT</FontFamily>
  <FontFamily x:Key="DefaultFont">pack:///siteoforigin:,,,/Resources/Fonts/#Helvetica LT Std Ultra Compressed</FontFamily>
  <FontFamily x:Key="ParagraphFont">pack://siteoforigin:,,,/Resources/Fonts/#Square721 Cn BT</FontFamily>
  <FontFamily x:Key="{x:Static scc:ClientResources.HeaderFontFamilyKey}">pack:///siteoforigin:,,,/Resources/Fonts/#Helvetica LT Std Ultra Compressed</FontFamily>
  <FontFamily x:Key="{x:Static scc:ClientResources.DefaultFontFamilyKey}">pack://siteoforigin:,,,/Resources/Fonts/#Square721 Cn BT</FontFamily>-->
  <FontFamily x:Key="LCARS_DefaultFont">pack://application:,,,/Resources/Fonts/#Federation Header Text</FontFamily>
  <FontFamily x:Key="LCARS_ParagraphFont">pack://application:,,,/Resources/Fonts/#Federation Standard Text</FontFamily>
  <FontFamily x:Key="DefaultFont">pack://application:,,,/Resources/Fonts/#Federation Header Text</FontFamily>
  <FontFamily x:Key="ParagraphFont">pack://application:,,,/Resources/Fonts/#Federation Standard Text</FontFamily>
<!--
  <FontFamily x:Key="{x:Static scc:ClientResources.HeaderFontFamilyKey}">pack://application:,,,/Resources/Fonts/#Federation Header Text</FontFamily>
  <FontFamily x:Key="{x:Static scc:ClientResources.DefaultFontFamilyKey}">pack://application:,,,/Resources/Fonts/#Federation Standard Text</FontFamily>
-->
  <FontFamily x:Key="{x:Static scc:ClientResources.HeaderFontFamilyKey}">pack://application:,,,/Resources/Fonts/#Federation Header Text</FontFamily>
  <FontFamily x:Key="{x:Static scc:ClientResources.DefaultFontFamilyKey}">pack://application:,,,/Resources/Fonts/#Federation Standard Text</FontFamily>

  <sys:Double x:Key="{x:Static scc:ClientResources.HeaderFontSizeKey}">24</sys:Double>
  <sys:Double x:Key="{x:Static scc:ClientResources.DefaultFontSizeKey}">16</sys:Double>
  
  <FontWeight x:Key="{x:Static scc:ClientResources.HeaderFontWeightKey}">Normal</FontWeight>
  <FontWeight x:Key="{x:Static scc:ClientResources.DefaultFontWeightKey}">Normal</FontWeight>
  
  <!-- GEOMETRY -->
  <Geometry x:Key="LCARS_Corner_TopLeft_Tall" PresentationOptions:Freeze="True">F1 M 2.16166e-005,16.0001L 2.16166e-005,16.0002C 2.16166e-005,7.16357 7.16344,0.000183105 16,0.000183105L 22,6.10352e-005L 22,28.0002L 22,28.0002C 14.268,28.0002 8.00001,32.2681 8.00001,40.0002L 1.14441e-005,40.0002L 2.16166e-005,16.0001 Z</Geometry>
  <Geometry x:Key="LCARS_Corner_TopRight_Tall" PresentationOptions:Freeze="True">F1 M 22,15.9999L 22,16C 22,7.16339 14.8366,0 6,0L 1.03315e-005,-6.10352e-005L 3.06765e-005,28L 2.55903e-005,28C 7.73203,28 14,32.268 14,40L 22,40L 22,15.9999 Z</Geometry>
  <Geometry x:Key="LCARS_Corner_BottomRight_Tall" PresentationOptions:Freeze="True">F1 M 22,24L 22,24C 22,32.8365 14.8366,39.9999 6.00001,39.9999L 2.1855e-005,40L 4.22001e-005,11.9999L 3.71138e-005,11.9999C 7.73204,11.9999 14,7.73193 14,0L 22,0 22,26 Z</Geometry>
  <Geometry x:Key="LCARS_Corner_BottomLeft_Tall" PresentationOptions:Freeze="True">F1 M 2.28882e-005,24L 2.28882e-005,24C 2.28882e-005,32.8366 7.16344,40 16,40L 22,40L 22,11.9999L 22,11.9999C 14.268,11.9999 8.00001,7.73193 8.00001,0L 1.27157e-005,0L 2.28882e-005,24 Z</Geometry>
  <Geometry x:Key="LCARS_Corner_TopLeft_Small" PresentationOptions:Freeze="True">F1 M 18,8L 22,8L 22,0L 16,0C 7.16345,0 6.51677e-006,7.16339 6.51677e-006,16L 1.66893e-005,22L 8.00001,22L 8,18C 8,12.4771 12.4772,8 18,8 Z</Geometry>
  <Geometry x:Key="LCARS_Corner_TopRight_Small" PresentationOptions:Freeze="True">F1 M 4.00003,8.00006L 2.98818e-005,8.00006L 2.47955e-005,6.10352e-005L 6.00002,6.10352e-005C 14.8366,6.10352e-005 22,7.16351 22,16.0001L 22,22.0001L 14,22.0001L 14,18.0001C 14,12.4772 9.52288,8.00006 4.00003,8.00006 Z</Geometry>
  <Geometry x:Key="LCARS_Corner_BottomRight_Small" PresentationOptions:Freeze="True">F1 M 4.00002,14L 2.41597e-005,14L 1.90735e-005,22L 6.00002,22C 14.8366,22 22,14.8366 22,6L 22,0L 14,0L 14,4C 14,9.52289 9.52287,14 4.00002,14 Z</Geometry>
  <Geometry x:Key="LCARS_Corner_BottomLeft_Small" PresentationOptions:Freeze="True">F1 M 18,14L 22,14L 22,22L 16,22C 7.16345,22 -5.56311e-007,14.8366 -5.56311e-007,6L 9.61621e-006,0L 8.00001,0L 7.99999,4C 7.99999,9.52289 12.4771,14 18,14 Z</Geometry>
  <Geometry x:Key="LCARS_Corner_TopLeft_Wide" PresentationOptions:Freeze="True">F1 M148.999992370605,8.99999809265136C142.372575759888,8.99999809265136,136.999994277954,14.3725833892822,136.999994277954,21C136.999994277954,21,136.999994277954,32.9999980926514,136.999994277954,32.9999980926514C136.999994277954,32.9999980926514,32.9999980926514,32.9999980926514,32.9999980926514,32.9999980926514C32.9999980926514,32.9999980926514,16.9999942779541,32.9999980926514,16.9999942779541,32.9999980926514C16.9999942779541,32.9999980926514,1,32.9999980926514,1,32.9999980926514C1,32.9999980926514,1,17,1,17C1,8.16344451904298,8.16343879699707,1,16.9999942779541,1C16.9999942779541,1,160.999990463257,1,160.999990463257,1C160.999990463257,1,160.999990463257,8.99999809265136,160.999990463257,8.99999809265136C160.999990463257,8.99999809265136,148.999992370605,8.99999809265136,148.999992370605,8.99999809265136z</Geometry>
  <Geometry x:Key="LCARS_Corner_BottomLeft_Wide" PresentationOptions:Freeze="True">F1 M148.999992370605,25C142.372575759888,25,136.999994277954,19.6274147033692,136.999994277954,12.9999980926514C136.999994277954,12.9999980926514,136.999994277954,1,136.999994277954,1C136.999994277954,1,32.9999980926514,1,32.9999980926514,1C32.9999980926514,1,16.9999942779541,1,16.9999942779541,1C16.9999942779541,1,1,1,1,1C1,1,1,16.9999980926514,1,16.9999980926514C1,25.8365535736084,8.16343879699707,32.9999980926514,16.9999942779541,32.9999980926514C16.9999942779541,32.9999980926514,160.999990463257,32.9999980926514,160.999990463257,32.9999980926514C160.999990463257,32.9999980926514,160.999990463257,25,160.999990463257,25C160.999990463257,25,148.999992370605,25,148.999992370605,25 Z</Geometry>
  
  <!-- COLORS AND BRUSHES -->
  <SolidColorBrush x:Key="{x:Static scc:ClientResources.ControlTextForegroundBrushKey}"
                   PresentationOptions:Freeze="True"
                   Color="#ff000000" />
  <SolidColorBrush x:Key="{x:Static scc:ClientResources.HeaderTextForegroundBrushKey}"
                   PresentationOptions:Freeze="True"
                   Color="#ffdfdfff" />
  <SolidColorBrush x:Key="{x:Static scc:ClientResources.DefaultTextForegroundBrushKey}"
                   PresentationOptions:Freeze="True"
                   Color="#ffe7d490" />
  <SolidColorBrush x:Key="{x:Static scc:ClientResources.DisabledTextForegroundBrushKey}"
                   PresentationOptions:Freeze="True"
                   Color="#ff999999" />
  <SolidColorBrush x:Key="{x:Static scc:ClientResources.HighlightBrushKey}"
                   PresentationOptions:Freeze="True"
                   Color="#7f146bdc" />
  <SolidColorBrush x:Key="{x:Static scc:ClientResources.InactiveHighlightBrushKey}"
                   PresentationOptions:Freeze="True"
                   Color="#7f666666" />
  <SolidColorBrush x:Key="{x:Static scc:ClientResources.AlertTextForegroundBrushKey}"
                   PresentationOptions:Freeze="True"
                   Color="Crimson" />
  <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}"
                   PresentationOptions:Freeze="True"
                   Color="#7f146bdc" />

  <LinearGradientBrush x:Key="{x:Static scc:ClientResources.HorizontalSeparatorBackgroundBrushKey}"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="0,1">
    <GradientStop Color="#ffd6bd6b"
                  Offset="0" />
    <GradientStop Color="#ffed9300"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="{x:Static scc:ClientResources.VerticalSeparatorBackgroundBrushKey}"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="1,0">
    <GradientStop Color="#ffdc961b"
                  Offset="1" />
    <GradientStop Color="#ffe7d490"
                  Offset="0" />
  </LinearGradientBrush>

  <SolidColorBrush x:Key="HeaderTextBrush"
                   PresentationOptions:Freeze="True"
                   Color="#ffdfdfff" />
  <SolidColorBrush x:Key="DefaultTextBrush"
                   PresentationOptions:Freeze="True"
                   Color="#ffe7d490" />
  <SolidColorBrush x:Key="LCARS_HeaderBrush"
                   PresentationOptions:Freeze="True"
                   Color="#ffdfdfff" />
  <SolidColorBrush x:Key="LCARS_ParagraphBrush"
                   PresentationOptions:Freeze="True"
                   Color="#ffe7d490" />
  <SolidColorBrush x:Key="LCARS_WarningBrush"
                   PresentationOptions:Freeze="True"
                   Color="Crimson" />
  <SolidColorBrush x:Key="LCARS_BlueTextBrush"
                   PresentationOptions:Freeze="True"
                   Color="#ffdfdfff" />
  <SolidColorBrush x:Key="LCARS_BeigeTextBrush"
                   PresentationOptions:Freeze="True"
                   Color="#ffe7d490" />
  <SolidColorBrush x:Key="LCARS_DisabledTextBrush"
                   PresentationOptions:Freeze="True"
                   Color="#ff999999" />
  <SolidColorBrush x:Key="LCARS_{StaticResource LCARS_BlueGradient_Top_Bottom}"
                   PresentationOptions:Freeze="True"
                   Color="#ffdfd3fc" />
  <LinearGradientBrush x:Key="LCARS_BlueGradient_Top_Bottom"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="0,1">
    <GradientStop Color="#ffdff3fc"
                  Offset="0" />
    <GradientStop Color="#ff7face3"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_BlueGradient_Bottom_Top"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,1"
                       EndPoint="0,0">
    <GradientStop Color="#ffdff3fc"
                  Offset="0" />
    <GradientStop Color="#ff7face3"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_BlueGradient_Left_Right"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="1,0">
    <GradientStop Color="#ffdff3fc"
                  Offset="0" />
    <GradientStop Color="#ff7face3"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_BlueGradient_Right_Left"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="1,0">
    <GradientStop Color="#ffdff3fc"
                  Offset="1" />
    <GradientStop Color="#ff7face3"
                  Offset="0" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_HoverBlueGradient_Left_Right"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="1,0">
    <GradientStop Color="#ffffffff"
                  Offset="0" />
    <GradientStop Color="#fface6ff"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_HoverBlueGradient_Top_Bottom"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="0,1">
    <GradientStop Color="#ffffffff"
                  Offset="0" />
    <GradientStop Color="#fface6ff"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_RedGradient_Left_Right"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="1,0">
    <GradientStop Color="#ffb15843"
                  Offset="0" />
    <GradientStop Color="#ff492725"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_OrangeGradient_Left_Right"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="1,0">
    <GradientStop Color="#ffdc961b"
                  Offset="1" />
    <GradientStop Color="#ffe7d490"
                  Offset="0" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_OrangeGradient_Right_Left"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="1,0">
    <GradientStop Color="#ffdc961b"
                  Offset="0" />
    <GradientStop Color="#ffe7d490"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_OrangeGradient_Top_Bottom"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="0,1">
    <GradientStop Color="#ffd6bd6b"
                  Offset="0" />
    <GradientStop Color="#ffed9300"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_OrangeGradient_Bottom_Top"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,1"
                       EndPoint="0,0">
    <GradientStop Color="#ffd6bd6b"
                  Offset="0" />
    <GradientStop Color="#ffed9300"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_OrangeGradient_TopLeft_BottomRight"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="1,1">
    <GradientStop Color="#ffd6bd6b"
                  Offset="0" />
    <GradientStop Color="#ffed9300"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_PurpleGradient_TopLeft_BottomRight"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="1,1">
    <GradientStop Color="#ffcacbe0"
                  Offset="0" />
    <GradientStop Color="#ff7e7cab"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_PurpleGradient_BottomLeft_TopRight"
                       PresentationOptions:Freeze="True"
                       StartPoint="1,1"
                       EndPoint="0,0">
    <GradientStop Color="#ffcacbe0"
                  Offset="0" />
    <GradientStop Color="#ff7e7cab"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_PurpleGradient_Top_Bottom"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="0,1">
    <GradientStop Color="#ffcacbe0"
                  Offset="0" />
    <GradientStop Color="#ff7e7cab"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_PurpleGradient_Bottom_Top"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,1"
                       EndPoint="0,0">
    <GradientStop Color="#ffcacbe0"
                  Offset="0" />
    <GradientStop Color="#ff7e7cab"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_PurpleGradient_Left_Right"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="1,0">
    <GradientStop Color="#ffcacbe0"
                  Offset="0" />
    <GradientStop Color="#ff7e7cab"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_PurpleGradient_Right_Left"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="1,0">
    <GradientStop Color="#ffcacbe0"
                  Offset="1" />
    <GradientStop Color="#ff7e7cab"
                  Offset="0" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_GrayGradient_Left_Right"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="1,0">
    <GradientStop Color="#7fcccccc"
                  Offset="0" />
    <GradientStop Color="#7f666666"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_GrayGradient_TopLeft_BottomRight"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="1,1">
    <GradientStop Color="#7fcccccc"
                  Offset="0" />
    <GradientStop Color="#7f666666"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_GrayGradient_Right_Left"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="1,0">
    <GradientStop Color="#7fcccccc"
                  Offset="1" />
    <GradientStop Color="#7f666666"
                  Offset="0" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_GrayGradient_Top_Bottom"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="0,1">
    <GradientStop Color="#7fcccccc"
                  Offset="0" />
    <GradientStop Color="#7f666666"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_GrayGradient_Bottom_Top"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="0,1">
    <GradientStop Color="#7fcccccc"
                  Offset="1" />
    <GradientStop Color="#7f666666"
                  Offset="0" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_PinkGradient_Left_Right"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0.5"
                       EndPoint="1,0.5">
    <GradientStop Color="#fff4d9e2"
                  Offset="0" />
    <GradientStop Color="#ffe38ea1"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_PinkGradient_Right_Left"
                       PresentationOptions:Freeze="True"
                       StartPoint="1,0.5"
                       EndPoint="0,0.5">
    <GradientStop Color="#fff4d9e2"
                  Offset="0" />
    <GradientStop Color="#ffe38ea1"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_PinkGradient_Top_Bottom"
                       PresentationOptions:Freeze="True"
                       StartPoint="0.5,0"
                       EndPoint="0.5,1">
    <GradientStop Color="#fff4d9e2"
                  Offset="0" />
    <GradientStop Color="#ffe38ea1"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_PinkGradient_Bottom_Top"
                       PresentationOptions:Freeze="True"
                       StartPoint="0.5,1"
                       EndPoint="0.5,0">
    <GradientStop Color="#fff4d9e2"
                  Offset="0" />
    <GradientStop Color="#ffe38ea1"
                  Offset="1" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="LCARS_PinkGradient_TopLeft_BottomRight"
                       PresentationOptions:Freeze="True"
                       StartPoint="0,0"
                       EndPoint="1,1">
    <GradientStop Color="#fff4d9e2"
                  Offset="0" />
    <GradientStop Color="#ffe38ea1"
                  Offset="1" />
  </LinearGradientBrush>

  <Style TargetType="{x:Type Label}">
    <Setter Property="Foreground"
            Value="{StaticResource DefaultTextBrush}" />
    <Setter Property="FontFamily"
            Value="{StaticResource ParagraphFont}" />
    <Setter Property="FontSize"
            Value="12pt" />
  </Style>

  <Style TargetType="{x:Type TextBlock}">
    <Setter Property="OverridesDefaultStyle"
            Value="True" />
    <Setter Property="SnapsToDevicePixels"
            Value="True" />
  </Style>

  <Style x:Key="BaseStyle"
         TargetType="{x:Type FrameworkElement}">
    <Setter Property="SnapsToDevicePixels"
            Value="True" />
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
  </Style>

  <Style x:Key="TranslucentWhenDisabledStyle"
         TargetType="{x:Type Control}"
         BasedOn="{StaticResource BaseStyle}">
    <Style.Triggers>
      <Trigger Property="IsEnabled"
               Value="False">
        <Setter Property="Opacity"
                Value="0.33" />
      </Trigger>
    </Style.Triggers>
  </Style>

  <Style TargetType="{x:Type ItemsControl}">
    <Setter Property="SnapsToDevicePixels"
        Value="True" />
    <Setter Property="Focusable"
        Value="False" />
    <Setter Property="IsTabStop"
        Value="False" />
    <Setter Property="FocusVisualStyle"
        Value="{x:Null}" />
  </Style>

  <Style TargetType="{x:Type CheckBox}"
       BasedOn="{StaticResource BaseStyle}">
    <Setter Property="FontFamily"
            Value="{StaticResource {x:Static scc:ClientResources.DefaultFontFamilyKey}}" />
    <Setter Property="Foreground"
            Value="{StaticResource {x:Static scc:ClientResources.DefaultTextForegroundBrushKey}}" />
    <Setter Property="FontSize"
            Value="{StaticResource {x:Static scc:ClientResources.DefaultFontSizeKey}}" />
    <!--<Setter Property="FontWeight"
            Value="{StaticResource {x:Static scc:ClientResources.DefaultFontWeightKey}}" />-->
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type CheckBox}">
          <DockPanel>
            <Border x:Name="Check"
                    DockPanel.Dock="Left"
                    Width="14"
                    Height="14"
                    BorderBrush="{StaticResource LCARS_BlueGradient_Top_Bottom}"
                    BorderThickness="2"
                    Background="Transparent"
                    Margin="0">
              <Border x:Name="CheckMark"
                      Width="6"
                      Height="6"
                      Visibility="Hidden"
                      SnapsToDevicePixels="True"
                      Background="{StaticResource LCARS_OrangeGradient_Top_Bottom}" />
            </Border>
            <scc:PixelSnapper>
              <ContentPresenter Margin="6,0,0,0" />
            </scc:PixelSnapper>
          </DockPanel>
          <ControlTemplate.Triggers>
            <Trigger Property="IsChecked"
                     Value="True">
              <Setter TargetName="CheckMark"
                      Property="Visibility"
                      Value="Visible" />
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="True">
              <Setter TargetName="Check"
                      Property="BorderBrush"
                      Value="{StaticResource LCARS_HoverBlueGradient_Top_Bottom}" />
            </Trigger>
            <Trigger Property="IsEnabled"
                     Value="False">
              <Setter TargetName="Check"
                      Property="BorderBrush"
                      Value="{StaticResource LCARS_GrayGradient_Top_Bottom}" />
              <Setter TargetName="CheckMark"
                      Property="Background"
                      Value="{StaticResource LCARS_GrayGradient_Top_Bottom}" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style TargetType="{x:Type RadioButton}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="FontFamily"
            Value="{StaticResource {x:Static scc:ClientResources.DefaultFontFamilyKey}}" />
    <Setter Property="Foreground"
            Value="{StaticResource {x:Static scc:ClientResources.DefaultTextForegroundBrushKey}}" />
    <Setter Property="FontSize"
            Value="{StaticResource {x:Static scc:ClientResources.DefaultFontSizeKey}}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type RadioButton}">
          <DockPanel LastChildFill="True">
            <Border DockPanel.Dock="Left"
                    Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(Control.FontSize), Mode=OneWay}"
                    Width="{Binding RelativeSource={RelativeSource Self}, Path=(FrameworkElement.Height), Mode=OneWay}"
                    VerticalAlignment="Top"
                    Padding="0,2,0,0">
            <Border x:Name="Check"
                    Width="14"
                    Height="14"
                    BorderBrush="{StaticResource LCARS_BlueGradient_Top_Bottom}"
                    BorderThickness="2"
                    Background="Transparent"
                    Margin="0"
                    VerticalAlignment="Center">
              <Border x:Name="CheckMark"
                      Width="6"
                      Height="6"
                      Visibility="Hidden"
                      SnapsToDevicePixels="True"
                      Background="{StaticResource LCARS_OrangeGradient_Top_Bottom}" />
              </Border>
            </Border>
            <scc:PixelSnapper>
              <ContentPresenter Margin="6,0,0,0"
                                HorizontalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=HorizontalContentAlignment}"
                                VerticalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=VerticalContentAlignment}" />
            </scc:PixelSnapper>
          </DockPanel>
          <ControlTemplate.Triggers>
            <Trigger Property="IsChecked"
                     Value="True">
              <Setter TargetName="CheckMark"
                      Property="Visibility"
                      Value="Visible" />
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="True">
              <Setter TargetName="Check"
                      Property="BorderBrush"
                      Value="{StaticResource LCARS_HoverBlueGradient_Top_Bottom}" />
            </Trigger>
            <Trigger Property="IsEnabled"
                     Value="False">
              <Setter TargetName="Check"
                      Property="BorderBrush"
                      Value="{StaticResource LCARS_GrayGradient_Top_Bottom}" />
              <Setter TargetName="CheckMark"
                      Property="Background"
                      Value="{StaticResource LCARS_GrayGradient_Top_Bottom}" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style TargetType="{x:Type ContentControl}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="KeyboardNavigation.IsTabStop"
            Value="False" />
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
    <Setter Property="SnapsToDevicePixels"
            Value="True" />
  </Style>

  <Style TargetType="{x:Type Control}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="OverridesDefaultStyle"
            Value="True" />
  </Style>

  <Style TargetType="{x:Type Image}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="SnapsToDevicePixels"
            Value="True" />
  </Style>

  <!-- BUTTON TEMPLATES -->
  <Style x:Key="LCARS_BaseButtonStyle"
         TargetType="{x:Type Button}"
         BasedOn="{StaticResource BaseStyle}">
    <Style.Triggers>
      <!--<EventTrigger RoutedEvent="Button.Click">
        <EventTrigger.Actions>
          <SoundPlayerAction Source="{Binding Source='Resources/UI/Federation/Sounds/ButtonClick.wav', Converter={StaticResource PathToUriConverter}}" />
        </EventTrigger.Actions>
      </EventTrigger>-->
    </Style.Triggers>
  </Style>

  <Style x:Key="LCARS_MainMenuButtonStyle"
         TargetType="{x:Type Button}"
         BasedOn="{StaticResource LCARS_BaseButtonStyle}">
    <Setter Property="FontFamily"
            Value="{StaticResource LCARS_DefaultFont}" />
    <Setter Property="FontSize"
            Value="16pt" />
    <Setter Property="ClipToBounds"
            Value="False" />
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Button}">
          <Grid>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="*" />
              <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <ui:ButtonChrome x:Name="ButtonChrome"
                             Background="{StaticResource LCARS_BlueGradient_Left_Right}"
                             DisabledBackground="{StaticResource LCARS_BlueGradient_Left_Right}"
                             HoverBackground="{StaticResource LCARS_HoverBlueGradient_Left_Right}"
                             PressedBackground="{StaticResource LCARS_BlueGradient_Right_Left}"
                             RenderMouseOver="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsMouseOver}"
                             RenderPressed="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsPressed}">
              <Border x:Name="ContentBorder"
                      Grid.Column="0"
                      Background="{Binding ElementName=ButtonChrome, Path=RenderBackground}"
                      Margin="0,0,2,0"
                      Padding="16,2,16,2"
                      IsEnabled="True"
                      ClipToBounds="False">
                <scc:PixelSnapper>
                  <ContentPresenter HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    RecognizesAccessKey="True" />
                </scc:PixelSnapper>
              </Border>
            </ui:ButtonChrome>
            <Rectangle Grid.Column="1"
                       Fill="{StaticResource LCARS_OrangeGradient_Left_Right}"
                       Width="12" />
          </Grid>
          <ControlTemplate.Triggers>
            <!--<Trigger Property="IsEnabled"
                     Value="False">
              <Setter TargetName="ContentBorder"
                      Property="Opacity"
                      Value="0.33"/>
            </Trigger>-->
            <!--<Trigger Property="IsMouseOver"
                     Value="True">
              <Setter Property="Background"
                      Value="{StaticResource LCARS_PinkGradient_Left_Right}" />
            </Trigger>-->
            <!--<Trigger Property="IsPressed"
                     Value="True">
              <Setter Property="Background"
                      Value="{StaticResource LCARS_BlueGradient_Right_Left}" />
            </Trigger>-->
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="LCARS_SimpleButtonStyle"
         TargetType="{x:Type Button}"
         BasedOn="{StaticResource LCARS_BaseButtonStyle}">
    <Setter Property="FontFamily"
            Value="{StaticResource LCARS_DefaultFont}" />
    <Setter Property="FontSize"
            Value="16pt" />
    <Setter Property="ClipToBounds"
            Value="False" />
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Button}">
          <Grid>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Border x:Name="ContentBorder"
                    Grid.Column="0"
                    Margin="0"
                    Padding="16,2,16,2"
                    Background="{StaticResource LCARS_BlueGradient_Left_Right}">
              <scc:PixelSnapper>
                <ContentPresenter HorizontalAlignment="Center"
                                  VerticalAlignment="Center"
                                  RecognizesAccessKey="True" />
              </scc:PixelSnapper>
            </Border>
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled"
                     Value="False">
              <Setter TargetName="ContentBorder"
                      Property="Opacity"
                      Value="0.33" />
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="True">
              <Setter TargetName="ContentBorder"
                      Property="Background"
                      Value="{StaticResource LCARS_HoverBlueGradient_Left_Right}" />
            </Trigger>
            <Trigger Property="IsPressed"
                     Value="True">
              <Setter TargetName="ContentBorder"
                      Property="Background"
                      Value="{StaticResource LCARS_BlueGradient_Right_Left}" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="LCARS_SimpleToggleButtonStyle"
         TargetType="{x:Type ToggleButton}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="FontFamily"
            Value="{StaticResource LCARS_DefaultFont}" />
    <Setter Property="FontSize"
            Value="16pt" />
    <Setter Property="HorizontalContentAlignment"
            Value="Center" />
    <Setter Property="VerticalContentAlignment"
            Value="Center" />
    <Setter Property="Padding"
            Value="16,2,16,2" />
    <Setter Property="ClipToBounds"
            Value="False" />
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ToggleButton}">
          <Grid>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Border x:Name="ContentBorder"
                    Grid.Column="0"
                    Margin="0"
                    Padding="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Padding}"
                    Background="{StaticResource LCARS_BlueGradient_Left_Right}">
              <scc:PixelSnapper>
                <ContentPresenter Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content}"
                                  HorizontalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=HorizontalContentAlignment}"
                                  VerticalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=VerticalContentAlignment}"
                                  RecognizesAccessKey="True" />
              </scc:PixelSnapper>
            </Border>
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled"
                     Value="False">
              <Setter TargetName="ContentBorder"
                      Property="Opacity"
                      Value="0.33" />
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="True">
              <Setter TargetName="ContentBorder"
                      Property="Background"
                      Value="{StaticResource LCARS_HoverBlueGradient_Left_Right}" />
            </Trigger>
            <Trigger Property="IsChecked"
                     Value="True">
              <Setter TargetName="ContentBorder"
                      Property="Background"
                      Value="{StaticResource LCARS_PinkGradient_Right_Left}" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Style.Triggers>
      <EventTrigger RoutedEvent="ToggleButton.Click">
        <!--<EventTrigger.Actions>
          <SoundPlayerAction Source="{Binding Source='Resources/UI/Federation/Sounds/ButtonClick.wav', Converter={StaticResource PathToUriConverter}}" />
        </EventTrigger.Actions>-->
      </EventTrigger>
    </Style.Triggers>
  </Style>

  <Style x:Key="LCARS_SmallButtonStyle"
         TargetType="{x:Type Button}"
         BasedOn="{StaticResource LCARS_BaseButtonStyle}">
    <Setter Property="FontFamily"
            Value="{StaticResource LCARS_DefaultFont}" />
    <Setter Property="FontSize"
            Value="16pt" />
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Button}">
          <Border x:Name="ContentBorder"
                  CornerRadius="7"
                  Padding="7,2,7,2"
                  Background="{StaticResource LCARS_BlueGradient_Top_Bottom}">
            <scc:PixelSnapper>
              <ContentPresenter VerticalAlignment="Center"
                                HorizontalAlignment="Center"
                                RecognizesAccessKey="True" />
            </scc:PixelSnapper>
          </Border>
          <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled"
                     Value="False">
              <Setter TargetName="ContentBorder"
                      Property="Opacity"
                      Value="0.33" />
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="True">
              <Setter TargetName="ContentBorder"
                      Property="Background"
                      Value="{StaticResource LCARS_HoverBlueGradient_Top_Bottom}" />
            </Trigger>
            <Trigger Property="IsPressed"
                     Value="True">
              <Setter TargetName="ContentBorder"
                      Property="Background"
                      Value="{StaticResource LCARS_BlueGradient_Bottom_Top}" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="LCARS_BorderButtonStyle"
         TargetType="{x:Type Button}"
         BasedOn="{StaticResource LCARS_BaseButtonStyle}">
    <Setter Property="FontFamily"
            Value="{StaticResource LCARS_DefaultFont}" />
    <Setter Property="FontSize"
            Value="16pt" />
    <Setter Property="ClipToBounds"
            Value="False" />
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="Background"
            Value="{StaticResource LCARS_BlueGradient_Top_Bottom}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Button}">
          <Grid>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Border x:Name="ContentBorder"
                    Grid.Column="0"
                    Margin="0"
                    Padding="7,2,7,2"
                    Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}">
              <scc:PixelSnapper>
                <ContentPresenter Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content}"
                                  HorizontalAlignment="Center"
                                  VerticalAlignment="Center"
                                  RecognizesAccessKey="True" />
              </scc:PixelSnapper>
            </Border>
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled"
                     Value="False">
              <Setter TargetName="ContentBorder"
                      Property="Opacity"
                      Value="0.33" />
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="True">
              <Setter TargetName="ContentBorder"
                      Property="Background"
                      Value="{StaticResource LCARS_HoverBlueGradient_Top_Bottom}" />
            </Trigger>
            <Trigger Property="IsPressed"
                     Value="True">
              <Setter TargetName="ContentBorder"
                      Property="Background"
                      Value="{StaticResource LCARS_BlueGradient_Bottom_Top}" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="LCARS_BorderToggleButtonStyle"
         TargetType="{x:Type ToggleButton}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="FontFamily"
            Value="{StaticResource LCARS_DefaultFont}" />
    <Setter Property="FontSize"
            Value="16pt" />
    <Setter Property="ClipToBounds"
            Value="False" />
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="Background"
            Value="{StaticResource LCARS_BlueGradient_Top_Bottom}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ToggleButton}">
          <Grid>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Border x:Name="ContentBorder"
                    Grid.Column="0"
                    Margin="0"
                    Padding="7,2,7,2"
                    Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}">
              <scc:PixelSnapper>
                <ContentPresenter Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content}"
                                  HorizontalAlignment="Center"
                                  VerticalAlignment="Center"
                                  RecognizesAccessKey="True" />
              </scc:PixelSnapper>
            </Border>
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled"
                     Value="False">
              <Setter TargetName="ContentBorder"
                      Property="Opacity"
                      Value="0.33" />
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="True">
              <Setter TargetName="ContentBorder"
                      Property="Background"
                      Value="{StaticResource LCARS_HoverBlueGradient_Top_Bottom}" />
            </Trigger>
            <Trigger Property="IsPressed"
                     Value="True">
              <Setter TargetName="ContentBorder"
                      Property="Background"
                      Value="{StaticResource LCARS_BlueGradient_Bottom_Top}" />
            </Trigger>
            <Trigger Property="IsChecked"
                     Value="True">
              <Setter TargetName="ContentBorder"
                      Property="Background"
                      Value="{StaticResource LCARS_BlueGradient_Bottom_Top}" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="LCARS_StandardButtonStyle"
         TargetType="{x:Type Button}"
         BasedOn="{StaticResource LCARS_BaseButtonStyle}">
    <Setter Property="FontFamily"
            Value="{StaticResource LCARS_DefaultFont}" />
    <Setter Property="FontSize"
            Value="18pt" />
    <!--<Setter Property="FontWeight"
            Value="Normal" />-->
    <Setter Property="ClipToBounds"
            Value="False" />
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="Padding"
            Value="16,0,16,0" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Button}">
          <Grid>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="Auto" />
              <ColumnDefinition Width="*" />
              <ColumnDefinition Width="Auto" />
              <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Border Grid.Column="0"
                    Background="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}"
                    CornerRadius="14,0,0,14"
                    Width="21" />
            <!--<Path Grid.Column="0"
                    Height="28"
                    Width="14"
                    Stretch="Fill" 
                    Fill="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}"
                    Data="F1 M 16,32C 7.16345,32 3.8147e-006,24.8366 3.8147e-006,16C 3.8147e-006,7.16344 7.16345,5.72205e-006 16,5.72205e-006L 16,16L 16,32 Z"/>-->
            <Border x:Name="ContentBorder"
                    Grid.Column="1"
                    Margin="3,0,3,0"
                    Padding="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Padding}"
                    Background="{StaticResource LCARS_BlueGradient_Left_Right}">
              <scc:PixelSnapper>
                <ContentPresenter Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content}"
                                  HorizontalAlignment="Center"
                                  VerticalAlignment="Center"
                                  RecognizesAccessKey="True" />
              </scc:PixelSnapper>
            </Border>
            <Rectangle Grid.Column="2"
                       Stretch="Fill"
                       Fill="{StaticResource LCARS_OrangeGradient_Left_Right}"
                       Margin="0,0,3,0"
                       Width="14" />
            <Border Grid.Column="3"
                    Background="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}"
                    CornerRadius="0,14,14,0"
                    Width="21" />
            <!--<Path Grid.Column="3"
                    Height="28"
                    Width="14" 
                    Stretch="Fill"
                    Fill="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" 
                    Data="F1 M 9.79717e-016,5.72205e-006C 8.83655,5.72205e-006 16,7.16344 16,16C 16,24.8366 8.83655,32 9.79717e-016,32L 0,16L 9.79717e-016,5.72205e-006 Z"/>-->
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled"
                     Value="False">
              <Setter TargetName="ContentBorder"
                      Property="Opacity"
                      Value="0.33" />
            </Trigger>
            <Trigger Property="IsMouseOver"
                     Value="True">
              <Setter TargetName="ContentBorder"
                      Property="Background"
                      Value="{StaticResource LCARS_HoverBlueGradient_Left_Right}" />
            </Trigger>
            <Trigger Property="IsPressed"
                     Value="True">
              <Setter TargetName="ContentBorder"
                      Property="Background"
                      Value="{StaticResource LCARS_BlueGradient_Right_Left}" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="StandardButtonStyle"
         TargetType="{x:Type Button}"
         BasedOn="{StaticResource LCARS_StandardButtonStyle}" />

  <Style TargetType="{x:Type Button}"
         BasedOn="{StaticResource LCARS_StandardButtonStyle}" />

  <!-- 
    *********************
    * LCARS FRAME THEME *
    *********************
  -->
  <Style x:Key="LCARS_BorderStyle"
         TargetType="{x:Type ContentControl}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ContentControl}">
          <Grid>
            <Grid.RowDefinitions>
              <RowDefinition Height="Auto" />
              <RowDefinition Height="*" />
              <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="Auto" />
              <ColumnDefinition Width="0.25*" />
              <ColumnDefinition Width="0.5*" />
              <ColumnDefinition Width="0.25*" />
              <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Path Grid.Column="0"
                  Grid.Row="0" PresentationOptions:Freeze="True"
                  SnapsToDevicePixels="True"
                  Data="{StaticResource LCARS_Corner_TopLeft_Tall}"
                  Fill="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" />
            <Path Grid.Column="4"
                  Grid.Row="0"
                  SnapsToDevicePixels="True"
                  Data="{StaticResource LCARS_Corner_TopRight_Tall}"
                  Fill="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" />
            <Path Grid.Column="0"
                  Grid.Row="2"
                  SnapsToDevicePixels="True"
                  Data="{StaticResource LCARS_Corner_BottomLeft_Tall}"
                  Fill="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" />
            <Path Grid.Column="4"
                  Grid.Row="2"
                  SnapsToDevicePixels="True"
                  Data="{StaticResource LCARS_Corner_BottomRight_Tall}"
                  Fill="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" />
            <Grid Grid.Column="1"
                  Grid.Row="0"
                  Height="28"
                  VerticalAlignment="Top">
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
              </Grid.ColumnDefinitions>
              <Rectangle x:Name="LeftTopEdge"
                         Grid.Column="1"
                         Margin="3,0,0,0"
                         Fill="{StaticResource LCARS_OrangeGradient_Top_Bottom}" />
            </Grid>
            <!--<Rectangle x:Name="CenterTopEdge" Grid.Column="2" Grid.Row="0" Height="28" Margin="3,0,3,0" VerticalAlignment="Top" Fill="{StaticResource LCARS_BlueGradient_Top_Bottom}"/>-->
            <Grid Grid.Column="2"
                  Grid.Row="0"
                  Height="28"
                  Margin="3,0,3,0"
                  VerticalAlignment="Top">
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
              </Grid.ColumnDefinitions>
              <Rectangle x:Name="LeftCenterTopEdge"
                         Grid.Column="0"
                         Fill="{StaticResource LCARS_BlueGradient_Top_Bottom}" />
              <Rectangle x:Name="RightCenterTopEdge"
                         Grid.Column="2"
                         Fill="{StaticResource LCARS_BlueGradient_Top_Bottom}" />
            </Grid>
            <Rectangle x:Name="RightTopEdge"
                       Grid.Column="3"
                       Grid.Row="0"
                       Height="28"
                       Margin="0,0,3,0"
                       VerticalAlignment="Top"
                       Fill="{StaticResource LCARS_OrangeGradient_Top_Bottom}" />
            <Rectangle x:Name="LeftEdge"
                       Grid.Column="0"
                       Grid.Row="1"
                       Width="8"
                       Margin="0,3,0,3"
                       HorizontalAlignment="Left"
                       Fill="{StaticResource LCARS_OrangeGradient_Left_Right}" />
            <Rectangle x:Name="RightEdge"
                       Grid.Column="4"
                       Grid.Row="1"
                       Width="8"
                       Margin="0,3,0,3"
                       HorizontalAlignment="Right"
                       Fill="{StaticResource LCARS_OrangeGradient_Left_Right}" />
            <Rectangle x:Name="LeftBottomEdge"
                       Grid.Column="1"
                       Grid.Row="2"
                       Height="28"
                       Margin="3,0,0,0"
                       VerticalAlignment="Bottom"
                       Fill="{StaticResource LCARS_OrangeGradient_Top_Bottom}" />
            <Rectangle x:Name="CenterBottomEdge"
                       Grid.Column="2"
                       Grid.Row="2"
                       Height="28"
                       Margin="3,0,3,0"
                       VerticalAlignment="Bottom"
                       Fill="{StaticResource LCARS_BlueGradient_Top_Bottom}" />
            <Rectangle x:Name="RightBottomEdge"
                       Grid.Column="3"
                       Grid.Row="2"
                       Height="28"
                       Margin="0,0,3,0"
                       VerticalAlignment="Bottom"
                       Fill="{StaticResource LCARS_OrangeGradient_Top_Bottom}" />
            <scc:PixelSnapper Grid.Column="1"
                              Grid.ColumnSpan="3"
                              Grid.Row="1"
                              Margin="7,0,7,0">
              <ContentPresenter ClipToBounds="True" />
            </scc:PixelSnapper>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!-- 
    **************************
    * THIN LCARS FRAME THEME *
    **************************
  -->
  <Style x:Key="LCARS_ThinBorderStyle"
         TargetType="{x:Type ContentControl}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="Background"
            Value="Transparent" />
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ContentControl}">
          <Border Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}"
                  CornerRadius="14">
            <Grid>
              <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
              </Grid.RowDefinitions>
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="0.25*" />
                <ColumnDefinition Width="0.5*" />
                <ColumnDefinition Width="0.25*" />
                <ColumnDefinition Width="Auto" />
              </Grid.ColumnDefinitions>
              <Path Grid.Column="0"
                  Grid.Row="0"
                  SnapsToDevicePixels="True"
                  Data="{StaticResource LCARS_Corner_TopLeft_Small}"
                  Fill="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" />
              <Path Grid.Column="4"
                    Grid.Row="0"
                    SnapsToDevicePixels="True"
                    Data="{StaticResource LCARS_Corner_TopRight_Small}"
                    Fill="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" />
              <Path Grid.Column="0"
                    Grid.Row="2"
                    SnapsToDevicePixels="True"
                    Data="{StaticResource LCARS_Corner_BottomLeft_Small}"
                    Fill="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" />
              <Path Grid.Column="4"
                    Grid.Row="2"
                    SnapsToDevicePixels="True"
                    Data="{StaticResource LCARS_Corner_BottomRight_Small}"
                    Fill="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" />
              <Rectangle x:Name="LeftTopEdge"
                         Grid.Column="1"
                         Grid.Row="0"
                         Height="8"
                         Margin="3,0,0,0"
                         VerticalAlignment="Top"
                         Fill="{StaticResource LCARS_OrangeGradient_Top_Bottom}" />
              <Rectangle x:Name="LeftCenterTopEdge"
                         Grid.Column="2"
                         Grid.Row="0"
                         Height="8"
                         Margin="3,0,3,0"
                         VerticalAlignment="Top"
                         Fill="{StaticResource LCARS_BlueGradient_Top_Bottom}" />
              <Rectangle x:Name="RightTopEdge"
                         Grid.Column="3"
                         Grid.Row="0"
                         Height="8"
                         Margin="0,0,3,0"
                         VerticalAlignment="Top"
                         Fill="{StaticResource LCARS_OrangeGradient_Top_Bottom}" />
              <Rectangle x:Name="LeftEdge"
                         Grid.Column="0"
                         Grid.Row="1"
                         Width="8"
                         Margin="0,3,0,3"
                         HorizontalAlignment="Left"
                         Fill="{StaticResource LCARS_OrangeGradient_Left_Right}" />
              <Rectangle x:Name="RightEdge"
                         Grid.Column="4"
                         Grid.Row="1"
                         Width="8"
                         Margin="0,3,0,3"
                         HorizontalAlignment="Right"
                         Fill="{StaticResource LCARS_OrangeGradient_Left_Right}" />
              <Rectangle x:Name="LeftBottomEdge"
                         Grid.Column="1"
                         Grid.Row="2"
                         Height="8"
                         Margin="3,0,0,0"
                         VerticalAlignment="Bottom"
                         Fill="{StaticResource LCARS_OrangeGradient_Top_Bottom}" />
              <Rectangle x:Name="CenterBottomEdge"
                         Grid.Column="2"
                         Grid.Row="2"
                         Height="8"
                         Margin="3,0,3,0"
                         VerticalAlignment="Bottom"
                         Fill="{StaticResource LCARS_BlueGradient_Top_Bottom}" />
              <Rectangle x:Name="RightBottomEdge"
                         Grid.Column="3"
                         Grid.Row="2"
                         Height="8"
                         Margin="0,0,3,0"
                         VerticalAlignment="Bottom"
                         Fill="{StaticResource LCARS_OrangeGradient_Top_Bottom}" />
              <scc:PixelSnapper Grid.Column="1"
                                Grid.ColumnSpan="3"
                                Grid.Row="1"
                                Margin="8,0,8,0">
                <ContentPresenter ClipToBounds="True" />
              </scc:PixelSnapper>
            </Grid>
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="{x:Type ListBox}"
         TargetType="ListBox"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="SnapsToDevicePixels"
            Value="True" />
    <Setter Property="OverridesDefaultStyle"
            Value="True" />
    <Setter Property="Background"
            Value="Transparent" />
    <Setter Property="Foreground"
            Value="{StaticResource DefaultTextBrush}" />
    <Setter Property="BorderBrush"
            Value="{StaticResource LCARS_BlueGradient_Top_Bottom}" />
    <Setter Property="BorderThickness"
            Value="2" />
    <Setter Property="ScrollViewer.HorizontalScrollBarVisibility"
            Value="Auto" />
    <Setter Property="ScrollViewer.VerticalScrollBarVisibility"
            Value="Auto" />
    <Setter Property="ScrollViewer.CanContentScroll"
            Value="True" />
    <Setter Property="MinWidth"
            Value="4" />
    <Setter Property="MinHeight"
            Value="4" />
    <Setter Property="Margin"
            Value="0" />
    <Setter Property="Padding"
            Value="0" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ListBox">
          <Border Name="Border"
                  Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}"
                  BorderBrush="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderBrush}"
                  BorderThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness}">
            <ScrollViewer Margin="0"
                          Focusable="False">
              <ItemsPresenter />
            </ScrollViewer>
          </Border>
          <ControlTemplate.Triggers>
            <Trigger Property="IsGrouping"
                     Value="True">
              <Setter Property="ScrollViewer.CanContentScroll"
                      Value="False" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style TargetType="{x:Type ListBoxItem}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="Background"
            Value="Transparent" />
    <Setter Property="FontFamily"
            Value="{StaticResource LCARS_ParagraphFont}" />
    <Setter Property="FontSize"
            Value="12pt" />
    <Setter Property="Padding"
            Value="6,2,6,2" />
    <Setter Property="HorizontalContentAlignment"
            Value="Stretch" />
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ListBoxItem}">
          <Border x:Name="Border"
                  Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}"
                  Padding="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Padding}">
            <scc:PixelSnapper>
              <ContentPresenter Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content}"
                                ContentTemplate="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ContentTemplate}"
                                ContentTemplateSelector="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ContentTemplateSelector}"
                                HorizontalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=HorizontalContentAlignment}"
                                VerticalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=VerticalContentAlignment}"
                                SnapsToDevicePixels="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SnapsToDevicePixels}" />
            </scc:PixelSnapper>
          </Border>
          <ControlTemplate.Triggers>
            <Trigger Property="IsSelected"
                     Value="True">
              <Setter TargetName="Border"
                      Property="Background"
                      Value="{StaticResource {x:Static scc:ClientResources.HighlightBrushKey}}" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style TargetType="{x:Type ListViewItem}"
         BasedOn="{StaticResource BaseStyle}">
    <Style.Resources>
      <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}"
                       Color="#7f146bdc" />
      <SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}"
                       Color="#7f146bdc" />
      <SolidColorBrush x:Key="{x:Static SystemColors.ControlTextBrushKey}"
                       Color="#ffe7d490" />
      <SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}"
                       Color="#ffe7d490" />
    </Style.Resources>
    <Setter Property="HorizontalContentAlignment"
            Value="Stretch" />
    <Setter Property="Background"
            Value="Transparent" />
    <Setter Property="FontFamily"
            Value="{StaticResource LCARS_ParagraphFont}" />
    <Setter Property="FontSize"
            Value="12pt" />
    <Setter Property="Padding"
            Value="4,2,4,2" />
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
    <!--<Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ListViewItem}">
          <Border x:Name="Border"
                  Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}"
                  Padding="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Padding}">
            <ContentPresenter Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content}"
                              ContentTemplate="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ContentTemplate}"
                              ContentTemplateSelector="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ContentTemplateSelector}"
                              HorizontalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=HorizontalContentAlignment}"
                              VerticalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=VerticalContentAlignment}"
                              SnapsToDevicePixels="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SnapsToDevicePixels}" />
          </Border>
          <ControlTemplate.Triggers>
            <Trigger Property="IsSelected"
                     Value="True">
              <Setter TargetName="Border"
                      Property="Background"
                      Value="{StaticResource {x:Static scc:ClientResources.HighlightBrushKey}}"/>
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>-->
  </Style>

  <Style TargetType="{x:Type ListView}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="SnapsToDevicePixels"
            Value="True" />
    <Setter Property="Background"
            Value="Transparent" />
    <Setter Property="Foreground"
            Value="{StaticResource DefaultTextBrush}" />
    <Setter Property="BorderBrush"
            Value="{StaticResource LCARS_BlueGradient_Top_Bottom}" />
    <Setter Property="BorderThickness"
            Value="2" />
    <Setter Property="ScrollViewer.HorizontalScrollBarVisibility"
            Value="Auto" />
    <Setter Property="ScrollViewer.VerticalScrollBarVisibility"
            Value="Auto" />
    <Setter Property="ScrollViewer.CanContentScroll"
            Value="True" />
    <Setter Property="MinWidth"
            Value="4" />
    <Setter Property="MinHeight"
            Value="4" />
    <Setter Property="Margin"
            Value="0" />
    <Setter Property="Padding"
            Value="0" />
    <!--<Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ListView">
          <Border Name="Border"
                  Margin="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Margin}"
                  BorderThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness}"
                  BorderBrush="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderBrush}"
                  Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}">
            <ScrollViewer>
              <ItemsPresenter />
            </ScrollViewer>
          </Border>
          <ControlTemplate.Triggers>
            <Trigger Property="IsGrouping"
                     Value="true">
              <Setter Property="ScrollViewer.CanContentScroll"
                      Value="false" />
            </Trigger>
            <Trigger Property="IsEnabled"
                     Value="false">
              <Setter TargetName="Border"
                      Property="BorderBrush"
                      Value="{StaticResource LCARS_GrayGradient_Top_Bottom}" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>-->
  </Style>

  <Style TargetType="{x:Type TextBoxBase}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="Background"
            Value="Black" />
    <Setter Property="Foreground"
            Value="{StaticResource LCARS_BeigeTextBrush}" />
    <Setter Property="FontFamily"
            Value="{StaticResource LCARS_ParagraphFont}" />
    <Setter Property="FontSize"
            Value="12pt" />
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type TextBoxBase}">
          <Border x:Name="Border"
                  BorderBrush="{StaticResource LCARS_BlueGradient_Top_Bottom}"
                  BorderThickness="2"
                  SnapsToDevicePixels="True">
            <ScrollViewer Margin="2"
                          x:Name="PART_ContentHost"
                          SnapsToDevicePixels="True" />
          </Border>
          <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled"
                     Value="False">
              <Setter TargetName="Border"
                      Property="BorderBrush"
                      Value="{StaticResource LCARS_GrayGradient_Top_Bottom}" />
              <Setter Property="Foreground"
                      Value="{StaticResource LCARS_DisabledTextBrush}" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="{x:Type TextBox}"
         BasedOn="{StaticResource {x:Type TextBoxBase}}"
         TargetType="{x:Type TextBox}" />

  <!-- SCROLLBAR STYLE -->
  <Style x:Key="ScrollBarRepeatButtonStyle"
         TargetType="{x:Type RepeatButton}"
         BasedOn="{x:Null}">
    <Setter Property="OverridesDefaultStyle"
            Value="True" />
    <Setter Property="KeyboardNavigation.IsTabStop"
            Value="False" />
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
    <Setter Property="Background"
            Value="Transparent" />
    <Setter Property="BorderBrush"
            Value="{x:Null}" />
    <Setter Property="BorderThickness"
            Value="0" />
    <Setter Property="Foreground"
            Value="#ff7e7cab" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type RepeatButton}">
          <Grid>
            <Border x:Name="Border"
                    Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}"
                    BorderBrush="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderBrush}"
                    BorderThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness}" />
            <scc:PixelSnapper>
              <ContentPresenter x:Name="ContentPresenter"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content}" />
            </scc:PixelSnapper>
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver"
                     Value="True">
              <Setter Property="Foreground"
                      Value="#ffcacbe0" />
            </Trigger>
            <Trigger Property="IsPressed"
                     Value="True">
              <Setter Property="Foreground"
                      Value="#ff7e7cab" />
            </Trigger>
            <Trigger Property="IsEnabled"
                     Value="False">
              <Setter Property="Foreground"
                      Value="Gray" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="ScrollBarThumbStyle"
         TargetType="{x:Type Thumb}"
         BasedOn="{x:Null}">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Thumb}">
          <Grid Margin="0,0,0,0"
                x:Name="Grid">
            <Rectangle x:Name="Rectangle"
                       HorizontalAlignment="Stretch"
                       VerticalAlignment="Stretch"
                       Width="Auto"
                       Height="Auto"
                       Fill="{StaticResource LCARS_OrangeGradient_Left_Right}" />
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver"
                     Value="True">
              <Setter TargetName="Rectangle"
                      Property="Fill"
                      Value="{StaticResource LCARS_OrangeGradient_Left_Right}" />
            </Trigger>
            <Trigger Property="IsDragging"
                     Value="True">
              <Setter TargetName="Rectangle"
                      Property="Fill"
                      Value="{StaticResource LCARS_OrangeGradient_Right_Left}" />
            </Trigger>
            <Trigger Property="IsEnabled"
                     Value="False">
              <Setter TargetName="Rectangle"
                      Property="Fill"
                      Value="{StaticResource LCARS_GrayGradient_Left_Right}" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="ScrollBarTrackRepeatButtonStyle"
         TargetType="{x:Type RepeatButton}">
    <Setter Property="Background"
            Value="Transparent" />
    <Setter Property="BorderBrush"
            Value="Transparent" />
    <Setter Property="IsTabStop"
            Value="False" />
    <Setter Property="KeyboardNavigation.IsTabStop"
            Value="False" />
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type RepeatButton}">
          <Grid>
            <Rectangle Fill="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}"
                       Stroke="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderBrush}" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style TargetType="{x:Type ScrollBar}">
    <Setter Property="Stylus.IsFlicksEnabled"
            Value="false" />
    <Setter Property="Background"
            Value="{StaticResource LCARS_GrayGradient_Left_Right}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ScrollBar}">
          <Grid x:Name="GridRoot"
                Width="8">
            <Grid.RowDefinitions>
              <RowDefinition MaxHeight="8" />
              <RowDefinition Height="0.00001*" />
              <RowDefinition MaxHeight="8" />
            </Grid.RowDefinitions>

            <RepeatButton x:Name="DecreaseRepeat"
                          Style="{StaticResource ScrollBarRepeatButtonStyle}"
                          Command="ScrollBar.LineUpCommand">
              <Grid>
                <Path x:Name="DecreaseArrow"
                      Data="M 0 4 L 8 4 L 4 0 Z"
                      Width="8"
                      Height="4"
                      Margin="0,2,0,2"
                      Fill="{Binding Path=Foreground, ElementName=DecreaseRepeat}"
                      HorizontalAlignment="Center"
                      VerticalAlignment="Center" />
              </Grid>
            </RepeatButton>

            <!-- Track is a special layout container which sizes the thumb and the repeat button which do jump scrolling either side of it -->
            <Border Grid.Row="1"
                    Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}">
              <Track x:Name="PART_Track"
                     Grid.Row="1"
                     Orientation="Vertical"
                     IsDirectionReversed="true">
                <Track.Thumb>
                  <Thumb Style="{StaticResource ScrollBarThumbStyle}" />
                </Track.Thumb>
                <Track.IncreaseRepeatButton>
                  <RepeatButton x:Name="PageUp"
                                Style="{StaticResource ScrollBarTrackRepeatButtonStyle}"
                                Command="ScrollBar.PageDownCommand" />
                </Track.IncreaseRepeatButton>
                <Track.DecreaseRepeatButton>
                  <RepeatButton x:Name="PageDown"
                                Style="{StaticResource ScrollBarTrackRepeatButtonStyle}"
                                Command="ScrollBar.PageUpCommand" />
                </Track.DecreaseRepeatButton>
              </Track>

            </Border>

            <RepeatButton Grid.Row="2"
                          x:Name="IncreaseRepeat"
                          Style="{StaticResource ScrollBarRepeatButtonStyle}"
                          Command="ScrollBar.LineDownCommand">
              <Grid>
                <Path x:Name="IncreaseArrow"
                      Data="M 0 0 L 4 4 L 8 0 Z"
                      Width="8"
                      Height="4"
                      Margin="0,2,0,2"
                      Fill="{Binding Path=Foreground, ElementName=IncreaseRepeat}"
                      HorizontalAlignment="Center"
                      VerticalAlignment="Center" />
              </Grid>
            </RepeatButton>
          </Grid>

          <!-- This uses a single template for ScrollBar and rotate it to be Horizontal
					It also changes the commands so that the it does Left and Right instead of Up and Down Commands -->
          <ControlTemplate.Triggers>
            <Trigger Property="Orientation"
                     Value="Horizontal">

              <!-- Rotate the ScrollBar from Vertical to Horizontal -->
              <Setter Property="LayoutTransform"
                      TargetName="GridRoot">
                <Setter.Value>
                  <TransformGroup>
                    <RotateTransform Angle="-90" />
                    <ScaleTransform ScaleX="1.0"
                                    ScaleY="-1.0" />
                  </TransformGroup>
                </Setter.Value>
              </Setter>

              <!-- Track is bound to Orientation internally, so we need to rotate it back to Vertical -->
              <Setter TargetName="PART_Track"
                      Property="Orientation"
                      Value="Vertical" />

              <!-- Change the commands to do Horizontal commands -->
              <Setter Property="Command"
                      Value="ScrollBar.LineLeftCommand"
                      TargetName="DecreaseRepeat" />
              <Setter Property="Command"
                      Value="ScrollBar.LineRightCommand"
                      TargetName="IncreaseRepeat" />
              <Setter Property="Command"
                      Value="ScrollBar.PageLeftCommand"
                      TargetName="PageDown" />
              <Setter Property="Command"
                      Value="ScrollBar.PageRightCommand"
                      TargetName="PageUp" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style TargetType="{x:Type ScrollViewer}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="IsTabStop"
        Value="False" />
    <Setter Property="FocusVisualStyle"
        Value="{x:Null}" />
    <Setter Property="OverridesDefaultStyle"
        Value="True" />
    <Setter Property="SnapsToDevicePixels"
            Value="True" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ScrollViewer}">
          <Grid>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="*" />
              <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
              <RowDefinition Height="*" />
              <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Border Grid.Row="0"
                    Grid.Column="0">
              <ScrollContentPresenter CanContentScroll="{TemplateBinding ScrollViewer.CanContentScroll}"
                                      Content="{TemplateBinding ScrollViewer.Content}" />
            </Border>
            <ScrollBar Orientation="Vertical"
                       Grid.Row="0"
                       Grid.Column="1"
                       Minimum="0"
                       Maximum="{TemplateBinding ScrollViewer.ScrollableHeight}"
                       Value="{TemplateBinding ScrollViewer.VerticalOffset}"
                       ViewportSize="{TemplateBinding ScrollViewer.ViewportHeight}"
                       Name="PART_VerticalScrollBar"
                       Visibility="{TemplateBinding ScrollViewer.ComputedVerticalScrollBarVisibility}" />
            <ScrollBar Orientation="Horizontal"
                       Grid.Row="1"
                       Grid.Column="0"
                       Minimum="0"
                       Maximum="{TemplateBinding ScrollViewer.ScrollableWidth}"
                       Value="{TemplateBinding ScrollViewer.HorizontalOffset}"
                       ViewportSize="{TemplateBinding ScrollViewer.ViewportWidth}"
                       Name="PART_HorizontalScrollBar"
                       Visibility="{TemplateBinding ScrollViewer.ComputedHorizontalScrollBarVisibility}" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style TargetType="{x:Type ToolTip}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="FontFamily"
            Value="{StaticResource LCARS_ParagraphFont}" />
    <Setter Property="FontSize"
            Value="10pt" />
    <Setter Property="Foreground"
            Value="White" />
    <Setter Property="Background"
            Value="#e0000000" />
    <Setter Property="Padding"
            Value="4,4,4,4" />
    <Setter Property="LayoutTransform"
            Value="{Binding Source={x:Static Application.Current}, Path=MainWindow.LayoutTransform}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ToolTip}">
          <Border Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}"
                  BorderBrush="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Foreground}"
                  BorderThickness="1"
                  Padding="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Padding}">
            <scc:PixelSnapper>
              <ContentPresenter TextBlock.FontFamily="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=FontFamily}"
                                TextBlock.FontSize="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=FontSize}"
                                TextBlock.Foreground="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Foreground}"
                                Typography.Kerning="True" />
            </scc:PixelSnapper>
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style TargetType="{x:Type Expander}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="Background"
            Value="Transparent" />
    <Setter Property="KeyboardNavigation.IsTabStop"
            Value="False" />
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
    <Setter Property="ExpandDirection"
            Value="Down" />
    <Setter Property="Foreground"
            Value="{StaticResource LCARS_BlueTextBrush}" />
    <Setter Property="FontFamily"
            Value="{StaticResource LCARS_DefaultFont}" />
    <Setter Property="FontSize"
            Value="18pt" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Expander}">
          <DockPanel>
            <ToggleButton DockPanel.Dock="Top"
                          Focusable="False"
                          Cursor="Hand"
                          IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource Mode=TemplatedParent, AncestorType={x:Null}}}">
              <ToggleButton.Template>
                <ControlTemplate TargetType="{x:Type ToggleButton}">
                  <scc:PixelSnapper>
                    <ContentPresenter />
                  </scc:PixelSnapper>
                </ControlTemplate>
              </ToggleButton.Template>
              <Grid x:Name="HeaderSite"
                    Grid.IsSharedSizeScope="False">
                <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="Auto" />
                  <ColumnDefinition Width="Auto" />
                  <ColumnDefinition Width="*" />
                  <ColumnDefinition Width="Auto" />
                  <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                  <RowDefinition Height="28" />
                  <RowDefinition MaxHeight="14" />
                </Grid.RowDefinitions>
                <Rectangle x:Name="TopLeftExpanded"
                           Grid.Column="0"
                           Grid.Row="0"
                           Grid.RowSpan="2"
                           Width="21"
                           Height="42"
                           Visibility="Collapsed">
                  <Rectangle.Fill>
                    <DrawingBrush>
                      <DrawingBrush.Drawing>
                        <GeometryDrawing PresentationOptions:Freeze="True"
                                         Brush="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}"
                                         Geometry="F1 M -7.62939e-006,56L 3.8147e-006,18.6666C 2.96699e-006,12.4445 2.11928e-006,6.22229 3.11111,3.11121C 6.22222,0 12.4444,0 18.6667,0L 28,0L 28,37.3333L 18.6667,37.3333C 15.5556,37.3333 12.4444,37.3333 10.8889,40.4445C 9.33334,43.5556 9.33334,49.7778 9.33334,56L -7.62939e-006,56 Z " />
                      </DrawingBrush.Drawing>
                    </DrawingBrush>
                  </Rectangle.Fill>
                </Rectangle>
                <Path x:Name="TopLeftCollapsed"
                      Grid.Column="0"
                      Grid.Row="0"
                      Grid.RowSpan="1"
                      Width="21"
                      Height="28"
                      Stretch="Fill"
                      Fill="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}"
                      Data="F1 M 20,40C 8.95431,40 2.9405e-006,31.0457 2.9405e-006,20C 2.9405e-006,8.95435 8.95431,0 20,0L 32,0L 32,40L 20,40 Z " />
                <ContentControl Grid.Column="1"
                                Grid.Row="0"
                                Grid.RowSpan="1"
                                VerticalAlignment="Top"
                                Margin="7,0,0,0"
                                Foreground="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Foreground}"
                                FontSize="18pt">
                  <scc:PixelSnapper>
                    <ContentPresenter Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Header}" />
                  </scc:PixelSnapper>
                </ContentControl>
                <Rectangle Grid.Column="2"
                           Grid.Row="0"
                           Grid.RowSpan="1"
                           Height="28"
                           VerticalAlignment="Top"
                           Fill="{StaticResource LCARS_BlueGradient_Left_Right}"
                           Margin="7,0,0,0" />
                <Rectangle Grid.Column="3"
                           Grid.Row="0"
                           Grid.RowSpan="1"
                           Width="14"
                           Height="28"
                           VerticalAlignment="Top"
                           Fill="{StaticResource LCARS_OrangeGradient_Left_Right}"
                           Margin="3,0,0,0" />
                <Rectangle Grid.Column="4"
                           Grid.Row="0"
                           Grid.RowSpan="1"
                           Width="21"
                           Height="28"
                           VerticalAlignment="Top"
                           Margin="3,0,0,0">
                  <Rectangle.Fill>
                    <DrawingBrush>
                      <DrawingBrush.Drawing>
                        <GeometryDrawing PresentationOptions:Freeze="True"
                                         Brush="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}"
                                         Geometry="F1 M 9.33333,0C 20.379,0 28,7.62097 28,18.6666C 28,29.7123 20.379,37.3333 9.33333,37.3333L 8.74201e-007,37.3333L 8.74201e-007,0L 9.33333,0 Z " />
                      </DrawingBrush.Drawing>
                    </DrawingBrush>
                  </Rectangle.Fill>
                </Rectangle>
              </Grid>
            </ToggleButton>
            <Grid x:Name="ContentSite"
                  DockPanel.Dock="Bottom"
                  Visibility="Collapsed">
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="7" />
                <ColumnDefinition Width="14" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
              </Grid.ColumnDefinitions>
              <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto"
                               MaxHeight="28" />
              </Grid.RowDefinitions>
              <!--<Path Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" Grid.RowSpan="1" Width="24" Height="12" Stretch="Fill" Fill="{StaticResource LCARS_PurpleGradient_Left_Right}" Margin="0,0,0,0" Data="F1 M 0,16L 1.27157e-006,0L 32,0L 24,0C 18.6667,0 13.3333,0 10.6667,2.66663C 8,5.33337 8,10.6666 8,16L 0,16 Z "/>-->
              <Rectangle Grid.Column="0"
                         Grid.Row="1"
                         Fill="{StaticResource LCARS_OrangeGradient_Left_Right}"
                         Width="7"
                         Margin="0,3,0,3"
                         Stretch="Fill" />
              <Rectangle Grid.Column="0"
                         Grid.ColumnSpan="2"
                         Grid.Row="2"
                         Grid.RowSpan="2"
                         Width="21"
                         Height="42">
                <Rectangle.Fill>
                  <DrawingBrush>
                    <DrawingBrush.Drawing>
                      <GeometryDrawing PresentationOptions:Freeze="True"
                                       Brush="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}"
                                       Geometry="F1 M 4.76837e-007,0L 1.19209e-005,28C 1.10732e-005,37.3333 1.02255e-005,46.6667 4.66668,51.3333C 9.33334,56 18.6667,56 28,56L 28,18.6666L 18.6667,18.6666C 15.5556,18.6666 12.4445,18.6666 10.8889,15.5555C 9.33334,12.4445 9.33334,6.22229 9.33334,0L 4.76837e-007,0 Z " />
                    </DrawingBrush.Drawing>
                  </DrawingBrush>
                </Rectangle.Fill>
              </Rectangle>
              <!--<Path Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2" Grid.RowSpan="2" Height="42" Width="24" Stretch="Fill" Fill="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" Data="F1 M 9.4739e-015,0L 1.27157e-006,16C 1.27157e-006,16 1.27157e-006,30.7439 1.27157e-006,36.2667C 1.27157e-006,47.3123 8.95431,56 20,56L 32,56L 32,16L 24,16C 18.6667,16 13.3333,16 10.6667,13.3334C 8,10.6666 8,5.33337 8,0L 9.4739e-015,0 Z "/>-->
              <Rectangle Grid.Column="2"
                         Grid.Row="3"
                         Fill="{StaticResource LCARS_BlueGradient_Left_Right}"
                         Margin="3,0,0,0"
                         Height="28"
                         Stretch="Fill" />
              <Rectangle Grid.Column="3"
                         Grid.Row="3"
                         Width="21"
                         Height="28"
                         VerticalAlignment="Top"
                         Margin="3,0,0,0">
                <Rectangle.Fill>
                  <DrawingBrush>
                    <DrawingBrush.Drawing>
                      <GeometryDrawing PresentationOptions:Freeze="True"
                                       Brush="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}"
                                       Geometry="F1 M 9.33333,0C 20.379,0 28,7.62097 28,18.6666C 28,29.7123 20.379,37.3333 9.33333,37.3333L 8.74201e-007,37.3333L 8.74201e-007,0L 9.33333,0 Z " />
                    </DrawingBrush.Drawing>
                  </DrawingBrush>
                </Rectangle.Fill>
              </Rectangle>
              <Border Grid.Column="2"
                      Grid.ColumnSpan="2"
                      Grid.Row="0"
                      Grid.RowSpan="3"
                      Padding="0,0,14,14">
                <scc:PixelSnapper>
                  <ContentPresenter Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content}" />
                </scc:PixelSnapper>
              </Border>
            </Grid>
          </DockPanel>
          <ControlTemplate.Triggers>
            <Trigger Property="IsExpanded"
                     Value="True">
              <Setter TargetName="TopLeftExpanded"
                      Property="Visibility"
                      Value="Visible" />
              <Setter TargetName="TopLeftCollapsed"
                      Property="Visibility"
                      Value="Collapsed" />
              <Setter TargetName="ContentSite"
                      Property="Visibility"
                      Value="Visible" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!-- LCARS Side Panel GroupBox Style -->
  <Style TargetType="{x:Type GroupBox}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="Background"
            Value="Transparent" />
    <Setter Property="KeyboardNavigation.IsTabStop"
            Value="False" />
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
    <Setter Property="Foreground"
            Value="{StaticResource LCARS_BlueTextBrush}" />
    <Setter Property="FontFamily"
            Value="{StaticResource LCARS_DefaultFont}" />
    <Setter Property="FontSize"
            Value="18pt" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type GroupBox}">
          <DockPanel>
            <Grid x:Name="HeaderSite"
                  Grid.IsSharedSizeScope="False"
                  DockPanel.Dock="Top">
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
              </Grid.ColumnDefinitions>
              <Grid.RowDefinitions>
                <RowDefinition Height="28" />
                <RowDefinition MaxHeight="14" />
              </Grid.RowDefinitions>
              <Rectangle x:Name="TopLeftExpanded"
                         Grid.Column="0"
                         Grid.Row="0"
                         Grid.RowSpan="2"
                         Width="21"
                         Height="42">
                <Rectangle.Fill>
                  <DrawingBrush>
                    <DrawingBrush.Drawing>
                      <GeometryDrawing PresentationOptions:Freeze="True"
                                       Brush="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}"
                                       Geometry="F1 M -7.62939e-006,56L 3.8147e-006,18.6666C 2.96699e-006,12.4445 2.11928e-006,6.22229 3.11111,3.11121C 6.22222,0 12.4444,0 18.6667,0L 28,0L 28,37.3333L 18.6667,37.3333C 15.5556,37.3333 12.4444,37.3333 10.8889,40.4445C 9.33334,43.5556 9.33334,49.7778 9.33334,56L -7.62939e-006,56 Z " />
                    </DrawingBrush.Drawing>
                  </DrawingBrush>
                </Rectangle.Fill>
              </Rectangle>
              <ContentControl Grid.Column="1"
                              Grid.Row="0"
                              Grid.RowSpan="1"
                              VerticalAlignment="Top"
                              Margin="7,0,0,0"
                              Foreground="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Foreground}"
                              FontSize="18pt">
                <scc:PixelSnapper>
                  <ContentPresenter Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Header}" />
                </scc:PixelSnapper>
              </ContentControl>
              <Rectangle Grid.Column="2"
                         Grid.Row="0"
                         Grid.RowSpan="1"
                         Height="28"
                         VerticalAlignment="Top"
                         Fill="{StaticResource LCARS_BlueGradient_Left_Right}"
                         Margin="7,0,0,0" />
              <Rectangle Grid.Column="3"
                         Grid.Row="0"
                         Grid.RowSpan="1"
                         Width="14"
                         Height="28"
                         VerticalAlignment="Top"
                         Fill="{StaticResource LCARS_OrangeGradient_Left_Right}"
                         Margin="3,0,0,0" />
              <Rectangle Grid.Column="4"
                         Grid.Row="0"
                         Grid.RowSpan="1"
                         Width="21"
                         Height="28"
                         VerticalAlignment="Top"
                         Margin="3,0,0,0">
                <Rectangle.Fill>
                  <DrawingBrush>
                    <DrawingBrush.Drawing>
                      <GeometryDrawing PresentationOptions:Freeze="True"
                                       Brush="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}"
                                       Geometry="F1 M 9.33333,0C 20.379,0 28,7.62097 28,18.6666C 28,29.7123 20.379,37.3333 9.33333,37.3333L 8.74201e-007,37.3333L 8.74201e-007,0L 9.33333,0 Z " />
                    </DrawingBrush.Drawing>
                  </DrawingBrush>
                </Rectangle.Fill>
              </Rectangle>
            </Grid>
            <Grid x:Name="ContentSite"
                  DockPanel.Dock="Bottom">
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="7" />
                <ColumnDefinition Width="14" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
              </Grid.ColumnDefinitions>
              <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto"
                               MaxHeight="28" />
              </Grid.RowDefinitions>
              <!--<Path Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" Grid.RowSpan="1" Width="24" Height="12" Stretch="Fill" Fill="{StaticResource LCARS_PurpleGradient_Left_Right}" Margin="0,0,0,0" Data="F1 M 0,16L 1.27157e-006,0L 32,0L 24,0C 18.6667,0 13.3333,0 10.6667,2.66663C 8,5.33337 8,10.6666 8,16L 0,16 Z "/>-->
              <Rectangle Grid.Column="0"
                         Grid.Row="1"
                         Fill="{StaticResource LCARS_OrangeGradient_Left_Right}"
                         Width="7"
                         Margin="0,3,0,3"
                         Stretch="Fill" />
              <Rectangle Grid.Column="0"
                         Grid.ColumnSpan="2"
                         Grid.Row="2"
                         Grid.RowSpan="2"
                         Width="21"
                         Height="42">
                <Rectangle.Fill>
                  <DrawingBrush>
                    <DrawingBrush.Drawing>
                      <GeometryDrawing PresentationOptions:Freeze="True"
                                       Brush="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}"
                                       Geometry="F1 M 4.76837e-007,0L 1.19209e-005,28C 1.10732e-005,37.3333 1.02255e-005,46.6667 4.66668,51.3333C 9.33334,56 18.6667,56 28,56L 28,18.6666L 18.6667,18.6666C 15.5556,18.6666 12.4445,18.6666 10.8889,15.5555C 9.33334,12.4445 9.33334,6.22229 9.33334,0L 4.76837e-007,0 Z " />
                    </DrawingBrush.Drawing>
                  </DrawingBrush>
                </Rectangle.Fill>
              </Rectangle>
              <!--<Path Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2" Grid.RowSpan="2" Height="42" Width="24" Stretch="Fill" Fill="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" Data="F1 M 9.4739e-015,0L 1.27157e-006,16C 1.27157e-006,16 1.27157e-006,30.7439 1.27157e-006,36.2667C 1.27157e-006,47.3123 8.95431,56 20,56L 32,56L 32,16L 24,16C 18.6667,16 13.3333,16 10.6667,13.3334C 8,10.6666 8,5.33337 8,0L 9.4739e-015,0 Z "/>-->
              <Rectangle Grid.Column="2"
                         Grid.Row="3"
                         Fill="{StaticResource LCARS_BlueGradient_Left_Right}"
                         Margin="3,0,0,0"
                         Height="28"
                         Stretch="Fill" />
              <Rectangle Grid.Column="3"
                         Grid.Row="3"
                         Width="21"
                         Height="28"
                         VerticalAlignment="Top"
                         Margin="3,0,0,0">
                <Rectangle.Fill>
                  <DrawingBrush>
                    <DrawingBrush.Drawing>
                      <GeometryDrawing PresentationOptions:Freeze="True"
                                       Brush="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}"
                                       Geometry="F1 M 9.33333,0C 20.379,0 28,7.62097 28,18.6666C 28,29.7123 20.379,37.3333 9.33333,37.3333L 8.74201e-007,37.3333L 8.74201e-007,0L 9.33333,0 Z " />
                    </DrawingBrush.Drawing>
                  </DrawingBrush>
                </Rectangle.Fill>
              </Rectangle>
              <Border Grid.Column="2"
                      Grid.ColumnSpan="2"
                      Grid.Row="0"
                      Grid.RowSpan="3"
                      Padding="0,0,14,14">
                <scc:PixelSnapper>
                  <ContentPresenter Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content}" />
                </scc:PixelSnapper>
              </Border>
            </Grid>
          </DockPanel>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <ControlTemplate x:Key="LCARS_ComboBoxToggleButton"
                   TargetType="{x:Type ToggleButton}">
    <Grid>
      <Border x:Name="Border"
              Width="21"
              Background="{StaticResource LCARS_OrangeGradient_Top_Bottom}">
        <Path x:Name="Arrow"
              Grid.Column="1"
              Fill="Black"
              HorizontalAlignment="Center"
              VerticalAlignment="Center"
              Data="M 0 0 L 4 4 L 8 0 Z" />
      </Border>
    </Grid>
    <ControlTemplate.Triggers>
      <Trigger Property="ToggleButton.IsMouseOver"
               Value="True">
        <Setter TargetName="Arrow"
                Property="Fill"
                Value="White" />
      </Trigger>
      <Trigger Property="ToggleButton.IsChecked"
               Value="True">
        <Setter TargetName="Border"
                Property="Background"
                Value="{StaticResource LCARS_OrangeGradient_Bottom_Top}" />
      </Trigger>
      <Trigger Property="IsEnabled"
               Value="False">
        <Setter TargetName="Border"
                Property="Background"
                Value="{StaticResource LCARS_GrayGradient_Top_Bottom}" />
      </Trigger>
    </ControlTemplate.Triggers>
  </ControlTemplate>

  <ControlTemplate x:Key="LCARS_ComboBoxTextBox"
                   TargetType="{x:Type TextBox}">
    <Border x:Name="Border"
            BorderBrush="{StaticResource LCARS_BlueGradient_Top_Bottom}"
            Background="#FF000000"
            BorderThickness="2"
            Focusable="False" />
  </ControlTemplate>

  <Style x:Key="{x:Type ComboBox}"
         TargetType="{x:Type ComboBox}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="FontFamily"
            Value="{StaticResource LCARS_DefaultFont}" />
    <Setter Property="FontSize"
            Value="16pt" />
    <Setter Property="Foreground"
            Value="{StaticResource LCARS_BeigeTextBrush}" />
    <Setter Property="SnapsToDevicePixels"
            Value="true" />
    <Setter Property="OverridesDefaultStyle"
            Value="true" />
    <Setter Property="ScrollViewer.HorizontalScrollBarVisibility"
            Value="Auto" />
    <Setter Property="ScrollViewer.VerticalScrollBarVisibility"
            Value="Auto" />
    <Setter Property="ScrollViewer.CanContentScroll"
            Value="true" />
    <Setter Property="MinWidth"
            Value="120" />
    <Setter Property="MinHeight"
            Value="24" />
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="IsTabStop"
            Value="False" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ComboBox}">
          <Grid>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="*" />
              <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <ToggleButton Name="ToggleButton"
                          Template="{StaticResource LCARS_ComboBoxToggleButton}"
                          Grid.Column="1"
                          Focusable="false"
                          IsChecked="{Binding Path=IsDropDownOpen,Mode=TwoWay,RelativeSource={RelativeSource TemplatedParent}}"
                          ClickMode="Press"
                          Margin="3,0,0,0">
            </ToggleButton>
            <Border x:Name="Border"
                    Grid.Column="0"
                    BorderBrush="{StaticResource LCARS_BlueGradient_Top_Bottom}"
                    Background="#FF000000"
                    BorderThickness="2"
                    Focusable="False">
              <Grid Margin="7,0,7,0">
                <scc:PixelSnapper>
                  <ContentPresenter Name="ContentSite"
                                    IsHitTestVisible="False"
                                    Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectionBoxItem}"
                                    ContentTemplate="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectionBoxItemTemplate}"
                                    ContentTemplateSelector="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ItemTemplateSelector}"
                                    VerticalAlignment="Center"
                                    HorizontalAlignment="Left" />
                </scc:PixelSnapper>
                <TextBox x:Name="PART_EditableTextBox"
                         Style="{x:Null}"
                         Template="{StaticResource LCARS_ComboBoxTextBox}"
                         HorizontalAlignment="Left"
                         VerticalAlignment="Center"
                         Focusable="True"
                         Background="Transparent"
                         Visibility="Hidden"
                         IsReadOnly="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsReadOnly}" />
              </Grid>
            </Border>

            <Popup Name="Popup"
                   Placement="Bottom"
                   IsOpen="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsDropDownOpen}"
                   AllowsTransparency="True"
                   Focusable="False"
                   PopupAnimation="Slide"
                   HorizontalOffset="-14"
                   VerticalOffset="2">

              <Border Background="Black"
                      CornerRadius="14">
                <Grid Name="DropDown"
                      SnapsToDevicePixels="True"
                      MinWidth="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}"
                      MaxHeight="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=MaxDropDownHeight}">
                  <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="14" />
                    <ColumnDefinition Width="*"
                                      MinWidth="14" />
                    <ColumnDefinition Width="14" />
                  </Grid.ColumnDefinitions>
                  <Grid.RowDefinitions>
                    <RowDefinition Height="14" />
                    <RowDefinition Height="*"
                                   MinHeight="14" />
                    <RowDefinition Height="14" />
                  </Grid.RowDefinitions>
                  <Border Grid.Column="0"
                          Grid.Row="0"
                          CornerRadius="14,0,0,0"
                          Background="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" />
                  <Border Grid.Column="2"
                          Grid.Row="0"
                          CornerRadius="0,14,0,0"
                          Background="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" />
                  <Border Grid.Column="2"
                          Grid.Row="2"
                          CornerRadius="0,0,14,0"
                          Background="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" />
                  <Border Grid.Column="0"
                          Grid.Row="2"
                          CornerRadius="0,0,0,14"
                          Background="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" />
                  <Border Grid.Column="0"
                          Grid.Row="1"
                          Margin="0,2,0,2"
                          Background="{StaticResource LCARS_OrangeGradient_Left_Right}" />
                  <Border Grid.Column="2"
                          Grid.Row="1"
                          Margin="0,2,0,2"
                          Background="{StaticResource LCARS_OrangeGradient_Left_Right}" />
                  <Border Grid.Column="1"
                          Grid.Row="0"
                          Margin="2,0,2,0"
                          Background="{StaticResource LCARS_OrangeGradient_Top_Bottom}" />
                  <Border Grid.Column="1"
                          Grid.Row="2"
                          Margin="2,0,2,0"
                          Background="{StaticResource LCARS_OrangeGradient_Top_Bottom}" />
                  <ScrollViewer Grid.Column="1"
                                Grid.Row="1"
                                Margin="2,2,2,0"
                                SnapsToDevicePixels="True">
                    <StackPanel IsItemsHost="True"
                                KeyboardNavigation.DirectionalNavigation="Contained" />
                  </ScrollViewer>
                </Grid>
              </Border>
            </Popup>
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled"
                     Value="false">
              <Setter Property="Opacity"
                      Value="0.25" />
            </Trigger>
            <Trigger Property="IsGrouping"
                     Value="true">
              <Setter Property="ScrollViewer.CanContentScroll"
                      Value="false" />
            </Trigger>
            <Trigger Property="IsEditable"
                     Value="true">
              <Setter Property="IsTabStop"
                      Value="false" />
              <Setter TargetName="PART_EditableTextBox"
                      Property="Visibility"
                      Value="Visible" />
              <Setter TargetName="ContentSite"
                      Property="Visibility"
                      Value="Hidden" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Style.Triggers>
    </Style.Triggers>
  </Style>

  <Style x:Key="{x:Type ComboBoxItem}"
         TargetType="{x:Type ComboBoxItem}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="SnapsToDevicePixels"
            Value="true" />
    <Setter Property="OverridesDefaultStyle"
            Value="true" />
    <Setter Property="Foreground"
            Value="Black" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ComboBoxItem}">
          <Grid Margin="0,0,0,2">
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="Auto" />
              <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Border Grid.Column="0"
                    Width="14"
                    Visibility="Collapsed"
                    Margin="0,0,3,0"
                    Background="{StaticResource LCARS_OrangeGradient_Left_Right}"
                    SnapsToDevicePixels="True" />
            <Border x:Name="Border"
                    Grid.Column="1"
                    Background="{StaticResource LCARS_BlueGradient_Left_Right}"
                    Padding="2"
                    SnapsToDevicePixels="True">
              <scc:PixelSnapper>
                <ContentPresenter Margin="7,0,7,0" />
              </scc:PixelSnapper>
            </Border>
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsHighlighted"
                     Value="true">
              <Setter TargetName="Border"
                      Property="Background"
                      Value="{StaticResource LCARS_HoverBlueGradient_Left_Right}" />
            </Trigger>
            <Trigger Property="IsEnabled"
                     Value="false">
              <Setter Property="Opacity"
                      Value="0.25" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!--
    *********************
    * TAB CONTROL STYLE *
    *********************
  -->
  <Style TargetType="{x:Type TabControl}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="OverridesDefaultStyle"
            Value="True" />
    <Setter Property="SnapsToDevicePixels"
            Value="True" />
    <Setter Property="KeyboardNavigation.IsTabStop"
            Value="False" />
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type TabControl}">
          <Grid Grid.IsSharedSizeScope="False"
                SnapsToDevicePixels="True">
            <Grid.RowDefinitions>
              <RowDefinition Height="Auto" />
              <RowDefinition Height="*" />
              <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="Auto" />
              <ColumnDefinition Width="*" />
              <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Path Grid.Column="0"
                  Grid.Row="0"
                  SnapsToDevicePixels="True"
                  Data="{StaticResource LCARS_Corner_TopLeft_Tall}"
                  Fill="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" />
            <Path Grid.Column="2"
                  Grid.Row="0"
                  SnapsToDevicePixels="True"
                  Data="{StaticResource LCARS_Corner_TopRight_Tall}"
                  Fill="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" />
            <Path Grid.Column="0"
                  Grid.Row="2"
                  SnapsToDevicePixels="True"
                  Data="{StaticResource LCARS_Corner_BottomLeft_Tall}"
                  Fill="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" />
            <Path Grid.Column="2"
                  Grid.Row="2"
                  SnapsToDevicePixels="True"
                  Data="{StaticResource LCARS_Corner_BottomRight_Tall}"
                  Fill="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}" />
            <Rectangle x:Name="LeftEdge"
                       Grid.Column="0"
                       Grid.Row="1"
                       Width="8"
                       Margin="0,3,0,3"
                       HorizontalAlignment="Left"
                       Fill="{StaticResource LCARS_OrangeGradient_Left_Right}" />
            <Rectangle x:Name="RightEdge"
                       Grid.Column="2"
                       Grid.Row="1"
                       Width="8"
                       Margin="0,3,0,3"
                       HorizontalAlignment="Right"
                       Fill="{StaticResource LCARS_OrangeGradient_Left_Right}" />
            <Rectangle x:Name="BottomEdge"
                       Grid.Column="1"
                       Grid.Row="2"
                       Height="28"
                       Margin="3,0,3,0"
                       VerticalAlignment="Bottom"
                       Fill="{StaticResource LCARS_BlueGradient_Top_Bottom}" />

            <Grid Grid.Column="1"
                  Grid.Row="0"
                  Height="28"
                  VerticalAlignment="Top"
                  SnapsToDevicePixels="True">
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
              </Grid.ColumnDefinitions>
              <TabPanel x:Name="HeaderPanel"
                        Grid.Column="0"
                        Margin="0"
                        IsItemsHost="True"
                        Panel.ZIndex="1"
                        KeyboardNavigation.TabIndex="1"
                        Background="Transparent"
                        SnapsToDevicePixels="True" />
              <Rectangle Grid.Column="1"
                         Margin="3,0,3,0"
                         Fill="{StaticResource LCARS_OrangeGradient_Top_Bottom}" />
            </Grid>

            <scc:PixelSnapper Grid.Column="1"
                              Grid.ColumnSpan="1"
                              Grid.Row="1">
              <ContentPresenter x:Name="PART_SelectedContentHost"
                                ContentSource="SelectedContent" />
            </scc:PixelSnapper>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!--
    ******************
    * TAB ITEM STYLE *
    ******************
  -->
  <Style TargetType="{x:Type TabItem}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="Height"
            Value="28" />
    <Setter Property="Margin"
            Value="2,0,0,0" />
    <Setter Property="FontFamily"
            Value="{StaticResource LCARS_DefaultFont}" />
    <Setter Property="FontSize"
            Value="16pt" />
    <Setter Property="KeyboardNavigation.IsTabStop"
            Value="False" />
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type TabItem}">
          <Grid x:Name="TabItemContainer" Margin="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Margin}">
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="14" />
              <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Column="0"
                       Width="14"
                       SnapsToDevicePixels="True"
                       Fill="{StaticResource LCARS_OrangeGradient_Top_Bottom}" />
            <scc:PixelSnappingBorder x:Name="Border"
                                     Grid.Column="1"
                                     Margin="3,0,0,0"
                                     Padding="7,0,7,0"
                                     SnapsToDevicePixels="True"
                                     Background="{StaticResource LCARS_BlueGradient_Left_Right}">
              <ContentPresenter ContentSource="Header"
                                VerticalAlignment="Center"
                                SnapsToDevicePixels="True" />
            </scc:PixelSnappingBorder>
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver"
                     Value="True">
              <Setter TargetName="Border"
                      Property="Background"
                      Value="{StaticResource LCARS_HoverBlueGradient_Left_Right}" />
            </Trigger>
            <Trigger Property="IsSelected"
                     Value="True">
              <!--<Setter Property="Panel.ZIndex"
                      Value="100" />-->
              <Setter TargetName="Border"
                      Property="Background"
                      Value="{StaticResource LCARS_PinkGradient_Left_Right}" />
            </Trigger>
            <!--<Trigger Property="IsMouseDown"
                     Value="True">
              <Setter TargetName="Border"
                      Property="Background"
                      Value="{StaticResource LCARS_BlueGradient_Right_Left}"/>
            </Trigger>-->
            <Trigger Property="IsEnabled"
                     Value="False">
              <Setter TargetName="Border"
                      Property="Opacity"
                      Value="0.25" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style TargetType="{x:Type ContextMenu}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="SnapsToDevicePixels"
            Value="True" />
    <Setter Property="OverridesDefaultStyle"
            Value="True" />
    <Setter Property="Grid.IsSharedSizeScope"
            Value="True" />
    <Setter Property="HasDropShadow"
            Value="True" />
    <Setter Property="FontFamily"
            Value="{StaticResource LCARS_ParagraphFont}" />
    <Setter Property="Foreground"
            Value="{StaticResource LCARS_BeigeTextBrush}" />
    <Setter Property="Background"
            Value="#cc000000" />
    <Setter Property="LayoutTransform"
            Value="{Binding Source={x:Static Application.Current}, Path=MainWindow.LayoutTransform}" />
    <Setter Property="FontSize"
            Value="12pt" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ContextMenu}">
          <Border Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}"
                  BorderBrush="{StaticResource LCARS_BlueGradient_Top_Bottom}"
                  BorderThickness="2">
            <StackPanel IsItemsHost="True"
                        Orientation="Vertical" />
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style TargetType="{x:Type MenuItem}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="Foreground"
            Value="{StaticResource LCARS_BeigeTextBrush}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type MenuItem}">
          <Border x:Name="Border"
                  Padding="6,2,6,2">
            <Grid>
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"
                                  SharedSizeGroup="Icon" />
                <ColumnDefinition Width="*" />
              </Grid.ColumnDefinitions>
              <scc:PixelSnapper>
                <ContentPresenter x:Name="Icon"
                                  Margin="6,0,6,0"
                                  VerticalAlignment="Center"
                                  ContentSource="Icon" />
              </scc:PixelSnapper>
              <Border x:Name="Check"
                      Width="14"
                      Height="14"
                      BorderBrush="{StaticResource LCARS_BlueGradient_Top_Bottom}"
                      BorderThickness="2"
                      Background="Transparent"
                      Margin="0"
                      VerticalAlignment="Center"
                      Visibility="Collapsed">
                <Border x:Name="CheckMark"
                        Width="6"
                        Height="6"
                        Visibility="Hidden"
                        SnapsToDevicePixels="True"
                        Background="{StaticResource LCARS_OrangeGradient_Top_Bottom}" />
              </Border>
              <scc:PixelSnapper Grid.Column="1">
                <ContentPresenter Name="HeaderHost"
                                  ContentSource="Header"
                                  RecognizesAccessKey="True"
                                  Margin="6,0,0,0" />
              </scc:PixelSnapper>
            </Grid>
          </Border>
          <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled"
                     Value="False">
              <Setter Property="Foreground"
                      Value="{StaticResource LCARS_DisabledTextBrush}" />
            </Trigger>
            <Trigger Property="IsMouseOver"
                   Value="True">
              <Setter TargetName="Border"
                      Property="Background"
                      Value="{StaticResource LCARS_GrayGradient_Top_Bottom}" />
            </Trigger>
            <Trigger Property="Icon"
                     Value="{x:Null}">
              <Setter TargetName="Icon"
                      Property="Visibility"
                      Value="Collapsed" />
            </Trigger>
            <Trigger Property="IsChecked"
                     Value="True">
              <Setter TargetName="CheckMark"
                      Property="Visibility"
                      Value="Visible" />
            </Trigger>
            <Trigger Property="IsCheckable"
                     Value="True">
              <Setter TargetName="Check"
                      Property="Visibility"
                      Value="Visible" />
              <Setter TargetName="Icon"
                      Property="Visibility"
                      Value="Collapsed" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="{x:Static MenuItem.SeparatorStyleKey}"
         TargetType="{x:Type Separator}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="Height"
            Value="2" />
    <Setter Property="Margin"
            Value="0" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Separator}">
          <Border BorderBrush="{StaticResource LCARS_BlueGradient_Top_Bottom}"
                  BorderThickness="2" />
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style TargetType="{x:Type Popup}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="OverridesDefaultStyle"
            Value="True" />
    <Setter Property="PopupAnimation"
            Value="None" />
    <Setter Property="AllowsTransparency"
            Value="True" />
  </Style>

  <Style TargetType="{x:Type ui:BlockBar}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="BlockBrush"
            Value="{StaticResource LCARS_OrangeGradient_Top_Bottom}" />
  </Style>

  <DataTemplate DataType="{x:Type game:SitRepEntry}">
    <DockPanel MaxWidth="540"
               LastChildFill="True"
               TextBlock.TextAlignment="Left">
      <Image x:Name="DetailImage"
             DockPanel.Dock="Left"
             Margin="0,0,14,0"
             MaxWidth="270"
             MaxHeight="225"
             VerticalAlignment="Top"
             Source="{Binding Path=DetailImage, Converter={StaticResource ImageUriConverter}}" />
      <TextBlock DockPanel.Dock="Top"
                 FontFamily="{StaticResource ParagraphFont}"
                 FontSize="14pt"
                 Foreground="{StaticResource HeaderTextBrush}"
                 Margin="0,0,0,14"
                 TextWrapping="Wrap"
                 TextTrimming="None"
                 Text="{Binding Path=HeaderText}" />
      <ScrollViewer HorizontalScrollBarVisibility="Disabled"
                    VerticalScrollBarVisibility="Auto">
        <TextBlock FontFamily="{StaticResource ParagraphFont}"
                   FontSize="12pt"
                   Foreground="{StaticResource DefaultTextBrush}"
                   TextWrapping="Wrap"
                   TextTrimming="CharacterEllipsis"
                   av:BindingHelpers.Inlines="{Binding Path=DetailText, Converter={StaticResource FormattedTextConverter}}"/>
      </ScrollViewer>
    </DockPanel>
    <DataTemplate.Triggers>
      <DataTrigger Binding="{Binding Path=DetailImage}" Value="{x:Null}">
        <Setter TargetName="DetailImage" Property="Visibility" Value="Collapsed" />
      </DataTrigger>
    </DataTemplate.Triggers>
  </DataTemplate>

  <DataTemplate DataType="{x:Type sys:String}">
    <TextBlock TextWrapping="Wrap"
               IsHyphenationEnabled="False"
               TextTrimming="CharacterEllipsis"
               Text="{Binding}" />
  </DataTemplate>

  <DataTemplate DataType="{x:Type local:CivRelationshipGraphNode}">
    <Button x:Name="NodeButton"
            Width="54"
            Tag="{Binding}"
            ToolTip="{Binding Path=SourceCiv.ShortName}">
      <Grid>
        <Border x:Name="NodeBackground"
                Background="White"
                CornerRadius="7">
          <DockPanel LastChildFill="True">
            <Border DockPanel.Dock="Top"
                    CornerRadius="7"
                    Height="54"
                    Margin="2">
              <Border.Background>
                <ImageBrush ImageSource="{Binding Path=SourceCiv, Converter={StaticResource CivImageConverter}}"
                            Stretch="UniformToFill" />
              </Border.Background>
            </Border>
            <!--<Border DockPanel.Dock="Bottom"
                    VerticalAlignment="Center">
              <TextBlock Foreground="White"
                         FontSize="7pt"
                         Margin="4,0,4,2"
                         TextAlignment="Center"
                         Text="{Binding Path=SourceCiv.ShortName, Converter={StaticResource StringResourceConverter}}"/>
            </Border>-->
          </DockPanel>
        </Border>
        <!--<Border CornerRadius="7,7,0,0">
          <Border.Background>
            <LinearGradientBrush StartPoint="0,0.5"
                                 EndPoint="1,0.5">
              <LinearGradientBrush.RelativeTransform>
                <TransformGroup>
                  <ScaleTransform CenterX="0.5"
                                  CenterY="0.5"
                                  ScaleX="1"
                                  ScaleY="1" />
                  <SkewTransform AngleX="0"
                                 AngleY="0"
                                 CenterX="0.5"
                                 CenterY="0.5" />
                  <RotateTransform CenterX="0.5"
                                   CenterY="0.5"
                                   Angle="90" />
                  <TranslateTransform X="0"
                                      Y="0" />
                </TransformGroup>
              </LinearGradientBrush.RelativeTransform>
              <GradientStop Color="#99FFFFFF"
                            Offset="0" />
              <GradientStop Color="#00FFFFFF"
                            Offset="0.4" />
            </LinearGradientBrush>
          </Border.Background>
        </Border>-->
      </Grid>
      <Button.Template>
        <ControlTemplate TargetType="{x:Type Button}">
          <Border>
            <scc:PixelSnapper>
              <ContentPresenter />
            </scc:PixelSnapper>
          </Border>
        </ControlTemplate>
      </Button.Template>
    </Button>
    <DataTemplate.Triggers>
      <DataTrigger Binding="{Binding ElementName=NodeButton, Path=IsMouseOver}"
                   Value="True">
        <Setter TargetName="NodeBackground"
                Property="Background"
                Value="Yellow" />
      </DataTrigger>
    </DataTemplate.Triggers>
  </DataTemplate>

  <Style x:Key="BlockBarDecrementButtonStyle"
         TargetType="{x:Type RepeatButton}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="Delay"
            Value="150" />
    <Setter Property="Interval"
            Value="50" />
    <Setter Property="IsTabStop"
            Value="False" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type RepeatButton}">
          <Border x:Name="Border"
                  Width="21"
                  Height="28"
                  CornerRadius="14,0,0,14"
                  Background="{StaticResource LCARS_PurpleGradient_Left_Right}" />
          <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver"
                     Value="True">
              <Setter TargetName="Border"
                      Property="Background"
                      Value="{StaticResource LCARS_PinkGradient_Left_Right}" />
            </Trigger>
            <Trigger Property="IsPressed"
                     Value="True">
              <Setter TargetName="Border"
                      Property="Background"
                      Value="{StaticResource LCARS_PurpleGradient_Left_Right}" />
              <!--<Trigger.EnterActions>
                <SoundPlayerAction Source="{Binding Source='Resources/UI/Federation/Sounds/ButtonClick.wav', Converter={StaticResource PathToUriConverter}}" />
              </Trigger.EnterActions>-->
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="BlockBarIncrementButtonStyle"
         TargetType="{x:Type RepeatButton}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="Delay"
            Value="150" />
    <Setter Property="Interval"
            Value="50" />
    <Setter Property="IsTabStop"
            Value="False" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type RepeatButton}">
          <Border x:Name="Border"
                  Width="21"
                  Height="28"
                  CornerRadius="0,14,14,0"
                  Background="{StaticResource LCARS_PurpleGradient_Left_Right}" />
          <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver"
                     Value="True">
              <Setter TargetName="Border"
                      Property="Background"
                      Value="{StaticResource LCARS_PinkGradient_Left_Right}" />
            </Trigger>
            <Trigger Property="IsPressed"
                     Value="True">
              <Setter TargetName="Border"
                      Property="Background"
                      Value="{StaticResource LCARS_PurpleGradient_Left_Right}" />
              <!--<Trigger.EnterActions>
                <SoundPlayerAction Source="{Binding Source='Resources/UI/Federation/Sounds/ButtonClick.wav', Converter={StaticResource PathToUriConverter}}" />
              </Trigger.EnterActions>-->
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="GridViewColumnHeaderGripper"
         TargetType="{x:Type Thumb}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="Canvas.Right"
            Value="-7" />
    <Setter Property="Width"
            Value="14" />
    <Setter Property="Height"
            Value="{Binding Path=ActualHeight,RelativeSource={RelativeSource TemplatedParent}}" />
    <Setter Property="Padding"
            Value="0" />
    <Setter Property="Background"
            Value="Transparent" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Thumb}">
          <Rectangle Fill="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}" />
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style x:Key="{x:Type GridViewColumnHeader}"
         TargetType="{x:Type GridViewColumnHeader}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="HorizontalContentAlignment"
            Value="Left" />
    <Setter Property="VerticalContentAlignment"
            Value="Center" />
    <Setter Property="Background"
            Value="Transparent" />
    <Setter Property="BorderBrush"
            Value="{x:Null}" />
    <Setter Property="BorderThickness"
            Value="0" />
    <Setter Property="Padding"
            Value="6,0,6,0" />
    <Setter Property="Margin"
            Value="0,0,0,4" />
    <Setter Property="Foreground"
            Value="{StaticResource HeaderTextBrush}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type GridViewColumnHeader}">
          <Grid SnapsToDevicePixels="true"
                Height="28"
                Margin="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Margin}">
            <Border Name="HeaderBorder">
              <DockPanel LastChildFill="True">
                <Border Padding="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Padding}">
                  <scc:PixelSnapper DockPanel.Dock="Left">
                    <ContentPresenter x:Name="HeaderContent"
                                      Content="{Binding Path=Content, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource UpperCaseConverter}}"
                                      Margin="0,0,0,1"
                                      TextBlock.FontFamily="{StaticResource DefaultFont}"
                                      TextBlock.Foreground="{StaticResource HeaderTextBrush}"
                                      TextBlock.FontSize="18pt"
                                      VerticalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=VerticalContentAlignment}"
                                      HorizontalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=HorizontalContentAlignment}"
                                      RecognizesAccessKey="True"
                                      SnapsToDevicePixels="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SnapsToDevicePixels}" />
                  </scc:PixelSnapper>
                </Border>
                <Border x:Name="BackgroundBorder"
                        Background="{StaticResource LCARS_BlueGradient_Top_Bottom}"
                        MinWidth="14"
                        HorizontalAlignment="Stretch" />
              </DockPanel>
            </Border>
            <Canvas>
              <Thumb x:Name="PART_HeaderGripper"
                     Background="Transparent"
                     Foreground="Transparent"
                     BorderBrush="Transparent"
                     Style="{StaticResource GridViewColumnHeaderGripper}" />
            </Canvas>
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver"
                     Value="True">
              <Setter TargetName="BackgroundBorder"
                      Property="Background"
                      Value="{StaticResource LCARS_HoverBlueGradient_Top_Bottom}" />
            </Trigger>
            <Trigger Property="IsPressed"
                     Value="True">
              <Setter TargetName="BackgroundBorder"
                      Property="Background"
                      Value="{StaticResource LCARS_BlueGradient_Bottom_Top}" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Style.Triggers>
      <Trigger Property="Role"
               Value="Floating">
        <Setter Property="Opacity"
                Value="0.4082" />
        <Setter Property="Template">
          <Setter.Value>
            <ControlTemplate TargetType="{x:Type GridViewColumnHeader}">
              <Canvas Name="PART_FloatingHeaderCanvas">
                <Rectangle Opacity="0.4697"
                           Fill="#FF000000"
                           Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}"
                           Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight}" />
              </Canvas>
            </ControlTemplate>
          </Setter.Value>
        </Setter>
      </Trigger>
      <Trigger Property="Role"
               Value="Padding">
        <Setter Property="Template">
          <Setter.Value>
            <ControlTemplate TargetType="{x:Type GridViewColumnHeader}">
              <Border Name="HeaderBorder"
                      BorderThickness="0"
                      BorderBrush="{x:Null}"
                      Background="{x:Null}" />
            </ControlTemplate>
          </Setter.Value>
        </Setter>
      </Trigger>
    </Style.Triggers>
  </Style>

  <!--<Style x:Key="{x:Static GridView.GridViewStyleKey}"
         TargetType="{x:Type ListView}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="Background"
            Value="Transparent" />
    <Setter Property="BorderBrush"
            Value="{StaticResource LCARS_BlueGradient_Top_Bottom}" />
    <Setter Property="BorderThickness"
            Value="2" />
    <Setter Property="Foreground"
            Value="{StaticResource DefaultTextBrush}" />
    <Setter Property="FontFamily"
            Value="{StaticResource ParagraphFont}" />
    <Setter Property="FontSize"
            Value="12" />
    <Setter Property="ScrollViewer.HorizontalScrollBarVisibility"
            Value="Auto" />
    <Setter Property="ScrollViewer.VerticalScrollBarVisibility"
            Value="Auto" />
    <Setter Property="ScrollViewer.CanContentScroll"
            Value="true" />
    <Setter Property="VerticalContentAlignment"
            Value="Center" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ListView}">
          <Border Name="Bd"
                  BorderThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness}"
                  BorderBrush="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderBrush}"
                  Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}"
                  SnapsToDevicePixels="true">
            <ScrollViewer Style="{StaticResource {x:Static GridView.GridViewScrollViewerStyleKey}}"
                          Padding="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Padding}">
              <ItemsPresenter SnapsToDevicePixels="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SnapsToDevicePixels}" />
            </ScrollViewer>
          </Border>
          <ControlTemplate.Triggers>
            <Trigger Property="IsGrouping"
                     Value="true">
              <Setter Property="ScrollViewer.CanContentScroll"
                      Value="false" />
            </Trigger>
            <Trigger Property="IsEnabled"
                     Value="false">
              <Setter TargetName="Bd"
                      Property="BorderBrush"
                      Value="{StaticResource LCARS_GrayGradient_Top_Bottom}" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>-->
  <Style x:Key="{x:Static GridView.GridViewScrollViewerStyleKey}"
         TargetType="{x:Type ScrollViewer}"
         BasedOn="{StaticResource BaseStyle}">
    <Setter Property="KeyboardNavigation.IsTabStop"
            Value="False" />
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
    <Setter Property="Background"
            Value="Transparent" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ScrollViewer}">
          <Grid Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}"
                SnapsToDevicePixels="true">
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="*" />
              <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
              <RowDefinition Height="*" />
              <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <DockPanel Margin="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Padding}">
              <ScrollViewer DockPanel.Dock="Top"
                            HorizontalScrollBarVisibility="Hidden"
                            VerticalScrollBarVisibility="Hidden"
                            Focusable="false">
                <GridViewHeaderRowPresenter Margin="2,0,2,0"
                                            Columns="{Binding Path=TemplatedParent.View.Columns,RelativeSource={RelativeSource TemplatedParent}}"
                                            ColumnHeaderContainerStyle="{Binding Path=TemplatedParent.View.ColumnHeaderContainerStyle,RelativeSource={RelativeSource TemplatedParent}}"
                                            ColumnHeaderTemplate="{Binding Path=TemplatedParent.View.ColumnHeaderTemplate,RelativeSource={RelativeSource TemplatedParent}}"
                                            ColumnHeaderTemplateSelector="{Binding Path=TemplatedParent.View.ColumnHeaderTemplateSelector,RelativeSource={RelativeSource TemplatedParent}}"
                                            AllowsColumnReorder="{Binding Path=TemplatedParent.View.AllowsColumnReorder,RelativeSource={RelativeSource TemplatedParent}}"
                                            ColumnHeaderContextMenu="{Binding Path=TemplatedParent.View.ColumnHeaderContextMenu,RelativeSource={RelativeSource TemplatedParent}}"
                                            ColumnHeaderToolTip="{Binding Path=TemplatedParent.View.ColumnHeaderToolTip,RelativeSource={RelativeSource TemplatedParent}}"
                                            SnapsToDevicePixels="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SnapsToDevicePixels}" />
              </ScrollViewer>
              <ScrollContentPresenter Name="PART_ScrollContentPresenter"
                                      KeyboardNavigation.DirectionalNavigation="Local"
                                      Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content}"
                                      ContentTemplate="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ContentTemplate}"
                                      ContentTemplateSelector="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ContentTemplateSelector}"
                                      CanContentScroll="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=CanContentScroll}"
                                      SnapsToDevicePixels="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SnapsToDevicePixels}" />
            </DockPanel>
            <ScrollBar Name="PART_HorizontalScrollBar"
                       Orientation="Horizontal"
                       Grid.Row="1"
                       Minimum="0.0"
                       Maximum="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ScrollableWidth}"
                       ViewportSize="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ViewportWidth}"
                       Value="{Binding Path=HorizontalOffset,RelativeSource={RelativeSource TemplatedParent},Mode=OneWay}"
                       Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ComputedHorizontalScrollBarVisibility}"
                       Cursor="Arrow" />
            <ScrollBar Name="PART_VerticalScrollBar"
                       Orientation="Vertical"
                       Grid.Column="1"
                       Margin="0,32,0,0"
                       Minimum="0.0"
                       Maximum="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ScrollableHeight}"
                       ViewportSize="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ViewportHeight}"
                       Value="{Binding Path=VerticalOffset,RelativeSource={RelativeSource TemplatedParent},Mode=OneWay}"
                       Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ComputedVerticalScrollBarVisibility}"
                       Cursor="Arrow" />
            <DockPanel Grid.Column="1"
                       Grid.Row="1"
                       Background="{Binding Path=Background,ElementName=PART_VerticalScrollBar}"
                       LastChildFill="false">
              <Rectangle DockPanel.Dock="Left"
                         Width="1"
                         Fill="White"
                         Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ComputedVerticalScrollBarVisibility}" />
              <Rectangle DockPanel.Dock="Top"
                         Height="1"
                         Fill="White"
                         Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ComputedHorizontalScrollBarVisibility}" />
            </DockPanel>
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!--<Style x:Key="{x:Static GridView.GridViewItemContainerStyleKey}"
         TargetType="{x:Type ListViewItem}" BasedOn="{StaticResource BaseStyle}">
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
    <Setter Property="Background"
            Value="Transparent" />
    <Setter Property="BorderBrush"
            Value="{x:Null}" />
    <Setter Property="BorderThickness"
            Value="0" />
    <Setter Property="Margin"
            Value="0" />
    <Setter Property="Padding"
            Value="5,2,5,2" />
    <Setter Property="VerticalContentAlignment"
            Value="Center" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ListViewItem}">
          <Border x:Name="OuterBorder"
                  BorderThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness}"
                  BorderBrush="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderBrush}"
                  Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}"
                  CornerRadius="2"
                  SnapsToDevicePixels="true">
            <Border x:Name="InnerBorder">
              <GridViewRowPresenter VerticalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=VerticalContentAlignment}"
                                    SnapsToDevicePixels="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SnapsToDevicePixels}" />
            </Border>
          </Border>
          <ControlTemplate.Triggers>
            <Trigger Property="IsSelected"
                     Value="True">
              <Setter TargetName="OuterBorder"
                      Property="Background"
                      Value="{StaticResource {x:Static scc:ClientResources.HighlightBrushKey}}" />
            </Trigger>
            <Trigger Property="IsEnabled"
                     Value="False">
              <Setter TargetName="InnerBorder"
                      Property="Opacity"
                      Value="0.5" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>-->

  <Style TargetType="{x:Type Hyperlink}">
    <Setter Property="Inline.FocusVisualStyle"
            Value="{StaticResource {x:Static SystemParameters.FocusVisualStyleKey}}" />
    <Setter Property="TextElement.Foreground"
            Value="{StaticResource HeaderTextBrush}" />
    <Setter Property="Inline.TextDecorations"
            Value="" />
    <Style.Triggers>
      <Trigger Property="ContentElement.IsMouseOver"
               Value="True">
        <Setter Property="Inline.TextDecorations"
                Value="Underline" />
      </Trigger>
    </Style.Triggers>
  </Style>

  <PathGeometry x:Key="TreeArrow"
                PresentationOptions:Freeze="True">
    <PathGeometry.Figures>
      <PathFigureCollection>
        <PathFigure PresentationOptions:Freeze="True"
                    IsFilled="True"
                    StartPoint="0 0"
                    IsClosed="True">
          <PathFigure.Segments>
            <PathSegmentCollection>
              <LineSegment Point="0 6" />
              <LineSegment Point="6 0" />
            </PathSegmentCollection>
          </PathFigure.Segments>
        </PathFigure>
      </PathFigureCollection>
    </PathGeometry.Figures>
  </PathGeometry>
  <Style x:Key="ExpandCollapseToggleStyle"
         TargetType="{x:Type ToggleButton}">
    <Setter Property="KeyboardNavigation.IsTabStop"
            Value="False" />
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
    <Setter Property="Width"
            Value="16" />
    <Setter Property="Height"
            Value="16" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ToggleButton}">
          <Border Width="16"
                  Height="16"
                  Background="Transparent"
                  Padding="5,5,5,5">
            <Path x:Name="ExpandPath"
                  Fill="Transparent"
                  Stroke="#ff7face3"
                  StrokeThickness="1"
                  Data="{StaticResource TreeArrow}">
              <Path.RenderTransform>
                <RotateTransform Angle="135"
                                 CenterX="3"
                                 CenterY="3" />
              </Path.RenderTransform>
            </Path>
          </Border>
          <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver"
                     Value="True">
              <Setter TargetName="ExpandPath"
                      Property="Stroke"
                      Value="#ffffffff" />
              <Setter TargetName="ExpandPath"
                      Property="Fill"
                      Value="Transparent" />
            </Trigger>
            <Trigger Property="IsChecked"
                     Value="True">
              <Setter TargetName="ExpandPath"
                      Property="RenderTransform">
                <Setter.Value>
                  <RotateTransform Angle="180"
                                   CenterX="3"
                                   CenterY="3" />
                </Setter.Value>
              </Setter>
              <Setter TargetName="ExpandPath"
                      Property="Fill"
                      Value="#ffdff3fc" />
              <Setter TargetName="ExpandPath"
                      Property="Stroke"
                      Value="#ffdff3fc" />
            </Trigger>
            <Trigger Property="IsEnabled"
                     Value="False">
              <Setter TargetName="ExpandPath"
                      Property="Fill"
                      Value="Transparent" />
              <Setter TargetName="ExpandPath"
                      Property="Stroke"
                      Value="#ff999999" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>
  <Style x:Key="{x:Type TreeView}"
         TargetType="{x:Type TreeView}">
    <Setter Property="ScrollViewer.CanContentScroll"
            Value="False" />
  </Style>
  <Style x:Key="{x:Type TreeViewItem}"
         TargetType="{x:Type TreeViewItem}">
    <Setter Property="BorderBrush"
            Value="{x:Null}" />
    <Setter Property="BorderThickness"
            Value="0" />
    <Setter Property="ScrollViewer.CanContentScroll"
            Value="False" />
    <Setter Property="Padding"
            Value="6,2,6,2" />
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type TreeViewItem}">
          <Grid>
            <Grid.ColumnDefinitions>
              <ColumnDefinition MinWidth="19"
                                Width="Auto" />
              <ColumnDefinition Width="Auto" />
              <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
              <RowDefinition Height="Auto" />
              <RowDefinition />
            </Grid.RowDefinitions>
            <ToggleButton x:Name="Expander"
                          Style="{StaticResource ExpandCollapseToggleStyle}"
                          IsChecked="{Binding Path=IsExpanded,RelativeSource={RelativeSource TemplatedParent}}"
                          ClickMode="Press" />
            <Border Name="Bd"
                    Grid.Column="1"
                    Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background}"
                    BorderBrush="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderBrush}"
                    BorderThickness="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=BorderThickness}"
                    Padding="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Padding}"
                    SnapsToDevicePixels="true">
              <scc:PixelSnapper>
                <ContentPresenter x:Name="PART_Header"
                                  ContentSource="Header"
                                  HorizontalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=HorizontalContentAlignment}"
                                  SnapsToDevicePixels="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SnapsToDevicePixels}" />
              </scc:PixelSnapper>
            </Border>
            <ui:Reveal Grid.Row="1"
                       Grid.Column="1"
                       Grid.ColumnSpan="2"
                       HorizontalAlignment="Left"
                       VerticalAlignment="Top"
                       VerticalReveal="FromBottomToTop"
                       IsExpanded="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsExpanded}">
              <ItemsPresenter />
            </ui:Reveal>
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="HasItems"
                     Value="false">
              <Setter TargetName="Expander"
                      Property="Visibility"
                      Value="Hidden" />
            </Trigger>
            <Trigger Property="IsSelected"
                     Value="true">
              <Setter TargetName="Bd"
                      Property="Background"
                      Value="{StaticResource {x:Static scc:ClientResources.HighlightBrushKey}}" />
              <Setter Property="Foreground"
                      Value="{StaticResource {x:Static scc:ClientResources.DefaultTextForegroundBrushKey}}" />
            </Trigger>
            <MultiTrigger>
              <MultiTrigger.Conditions>
                <Condition Property="IsSelected"
                           Value="true" />
                <Condition Property="IsSelectionActive"
                           Value="false" />
              </MultiTrigger.Conditions>
              <Setter TargetName="Bd"
                      Property="Background"
                      Value="{StaticResource {x:Static scc:ClientResources.InactiveHighlightBrushKey}}" />
              <!--<Setter Property="Foreground"
                      Value="{StaticResource {x:Static SystemColors.ControlTextBrushKey}}" />-->
            </MultiTrigger>
            <Trigger Property="IsEnabled"
                     Value="false">
              <Setter TargetName="Bd"
                      Property="Background"
                      Value="Transparent" />
              <Setter Property="Foreground"
                      Value="{StaticResource {x:Static scc:ClientResources.DisabledTextForegroundBrushKey}}" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!-- DIALOGS -->
  <Style x:Key="{x:Static scc:ClientResources.DialogContainerStyleKey}"
         TargetType="{x:Type ContentControl}"
         BasedOn="{StaticResource LCARS_ThinBorderStyle}" />

  <Style x:Key="{x:Static scc:ClientResources.MessageDialogButtonStyleKey}"
         TargetType="{x:Type Button}"
         BasedOn="{StaticResource LCARS_StandardButtonStyle}" />
  
  
  <!--
    GameButton Style
  -->

  <ControlTemplate x:Key="{x:Static scc:GameButton.NormalTemplateKey}"
                   TargetType="{x:Type scc:GameButton}">
    <Grid>
      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="Auto" />
        <ColumnDefinition Width="Auto" />
      </Grid.ColumnDefinitions>
      <Border Grid.Column="0"
              Background="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}"
              CornerRadius="14,0,0,14"
              Width="21" />

      <DockPanel LastChildFill="True">
        <Image DockPanel.Dock="Left"
               MinWidth="16"
               MinHeight="16"
               MaxWidth="24"
               MaxHeight="24"
               Margin="3,0,0,0"
               Stretch="Uniform"
               StretchDirection="DownOnly"
               VerticalAlignment="Center"
               Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(scc:GameControlBase.HasImage), Converter={StaticResource BooleanToVisibilityConverter}}">
          <Image.Source>
            <MultiBinding Converter="{scc:CoalesceConverter}">
              <Binding RelativeSource="{RelativeSource TemplatedParent}"
                       Path="ImageSourceLarge" />
              <Binding RelativeSource="{RelativeSource TemplatedParent}"
                       Path="ImageSourceSmall" />
            </MultiBinding>
          </Image.Source>
        </Image>
        <Border x:Name="ContentBorder"
                Grid.Column="1"
                Margin="3,0,3,0"
                Padding="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Padding}"
                Background="{StaticResource LCARS_BlueGradient_Left_Right}">
          <scc:PixelSnapper>
            <ContentPresenter RecognizesAccessKey="True">
              <ContentPresenter.Content>
                <AccessText Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Label}"
                            HorizontalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=HorizontalContentAlignment}"
                            VerticalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=VerticalContentAlignment}" />
              </ContentPresenter.Content>
            </ContentPresenter>
          </scc:PixelSnapper>
        </Border>
      </DockPanel>
      <Rectangle Grid.Column="2"
                 Stretch="Fill"
                 Fill="{StaticResource LCARS_OrangeGradient_Left_Right}"
                 Margin="0,0,3,0"
                 Width="14" />
      <Border Grid.Column="3"
              Background="{StaticResource LCARS_PurpleGradient_TopLeft_BottomRight}"
              CornerRadius="0,14,14,0"
              Width="21" />
    </Grid>
    <ControlTemplate.Triggers>
      <Trigger Property="IsEnabled"
               Value="False">
        <Setter TargetName="ContentBorder"
                Property="Opacity"
                Value="0.33" />
      </Trigger>
      <Trigger Property="IsMouseOver"
               Value="True">
        <Setter TargetName="ContentBorder"
                Property="Background"
                Value="{StaticResource LCARS_HoverBlueGradient_Left_Right}" />
      </Trigger>
      <Trigger Property="IsPressed"
               Value="True">
        <Setter TargetName="ContentBorder"
                Property="Background"
                Value="{StaticResource LCARS_BlueGradient_Right_Left}" />
      </Trigger>
    </ControlTemplate.Triggers>
  </ControlTemplate>

  <ControlTemplate x:Key="{x:Static scc:GameButton.CheckboxTemplateKey}"
                   TargetType="{x:Type scc:GameButton}">
    <DockPanel LastChildFill="True">
      <Border x:Name="Check"
              DockPanel.Dock="Left"
              Width="14"
              Height="14"
              BorderBrush="{StaticResource LCARS_BlueGradient_Top_Bottom}"
              BorderThickness="2"
              Background="Transparent"
              Margin="0"
              VerticalAlignment="Center">
        <Border x:Name="CheckMark"
                Width="6"
                Height="6"
                Visibility="Hidden"
                SnapsToDevicePixels="True"
                Background="{StaticResource LCARS_OrangeGradient_Top_Bottom}" />
      </Border>
      <scc:PixelSnapper>
        <ContentPresenter RecognizesAccessKey="True">
          <ContentPresenter.Content>
            <AccessText Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Label}"
                        Margin="6,0,0,0"
                        VerticalAlignment="Center" />
          </ContentPresenter.Content>
        </ContentPresenter>
      </scc:PixelSnapper>
    </DockPanel>
    <ControlTemplate.Triggers>
      <Trigger Property="IsChecked"
               Value="True">
        <Setter TargetName="CheckMark"
                Property="Visibility"
                Value="Visible" />
      </Trigger>
      <Trigger Property="IsChecked"
               Value="{x:Null}">
        <Setter TargetName="CheckMark"
                Property="Background"
                Value="{StaticResource LCARS_GrayGradient_Top_Bottom}" />
      </Trigger>
      <Trigger Property="IsMouseOver"
               Value="True">
        <Setter TargetName="Check"
                Property="BorderBrush"
                Value="{StaticResource LCARS_HoverBlueGradient_Top_Bottom}" />
      </Trigger>
      <Trigger Property="IsEnabled"
               Value="False">
        <Setter TargetName="Check"
                Property="BorderBrush"
                Value="{StaticResource LCARS_GrayGradient_Top_Bottom}" />
        <Setter TargetName="CheckMark"
                Property="Background"
                Value="{StaticResource LCARS_GrayGradient_Top_Bottom}" />
      </Trigger>
    </ControlTemplate.Triggers>
  </ControlTemplate>

  <ControlTemplate x:Key="{x:Static scc:GameButton.MinimalTemplateKey}"
                   TargetType="{x:Type scc:GameButton}">
    <Border x:Name="ContentBorder"
            Padding="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Padding}"
            Background="{StaticResource LCARS_BlueGradient_Left_Right}">
      <scc:PixelSnapper>
        <ContentPresenter RecognizesAccessKey="True">
          <ContentPresenter.Content>
            <AccessText Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Label}"
                        HorizontalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=HorizontalContentAlignment}"
                        VerticalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=VerticalContentAlignment}" />
          </ContentPresenter.Content>
        </ContentPresenter>
      </scc:PixelSnapper>
    </Border>
    <ControlTemplate.Triggers>
      <Trigger Property="IsEnabled"
               Value="False">
        <Setter TargetName="ContentBorder"
                Property="Opacity"
                Value="0.33" />
      </Trigger>
      <Trigger Property="IsMouseOver"
               Value="True">
        <Setter TargetName="ContentBorder"
                Property="Background"
                Value="{StaticResource LCARS_HoverBlueGradient_Left_Right}" />
      </Trigger>
      <Trigger Property="IsChecked"
               Value="True">
        <Setter TargetName="ContentBorder"
                Property="Background"
                Value="{StaticResource LCARS_PinkGradient_Right_Left}" />
      </Trigger>
      <Trigger Property="IsPressed"
               Value="True">
        <Setter TargetName="ContentBorder"
                Property="Background"
                Value="{StaticResource LCARS_BlueGradient_Right_Left}" />
      </Trigger>
    </ControlTemplate.Triggers>
  </ControlTemplate>

  <ControlTemplate x:Key="{x:Static scc:GameButton.GroupedVerticallyTemplateKey}"
                   TargetType="{x:Type scc:GameButton}">
    <DockPanel LastChildFill="True">
      <Rectangle DockPanel.Dock="Left"
                 Fill="{StaticResource LCARS_OrangeGradient_Left_Right}"
                 Width="12"
                 Margin="0,0,2,0" />

      <ui:ButtonChrome x:Name="ButtonChrome"
                       Background="{StaticResource LCARS_BlueGradient_Left_Right}"
                       DisabledBackground="{StaticResource LCARS_BlueGradient_Left_Right}"
                       HoverBackground="{StaticResource LCARS_HoverBlueGradient_Left_Right}"
                       PressedBackground="{StaticResource LCARS_BlueGradient_Right_Left}"
                       RenderMouseOver="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsMouseOver}"
                       RenderPressed="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsPressed}">
        <DockPanel LastChildFill="True">
          <Border x:Name="Decorations"
                  DockPanel.Dock="Right"
                  Margin="4"
                  Padding="2"
                  Background="Black"
                  HorizontalAlignment="Right"
                  VerticalAlignment="Center"
                  Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(scc:GameControlBase.HasImage), Converter={StaticResource BooleanToVisibilityConverter}}">
            <Image Width="16"
                   Height="16"
                   Stretch="Uniform"
                   StretchDirection="DownOnly"
                   VerticalAlignment="Center">
              <Image.Source>
                <MultiBinding Converter="{scc:CoalesceConverter}">
                  <Binding RelativeSource="{RelativeSource TemplatedParent}"
                           Path="ImageSourceSmall" />
                  <Binding RelativeSource="{RelativeSource TemplatedParent}"
                           Path="ImageSourceLarge" />
                </MultiBinding>
              </Image.Source>
            </Image>
          </Border>
          <Border x:Name="ContentBorder"
                  Background="{Binding ElementName=ButtonChrome, Path=RenderBackground}"
                  Padding="16,2,16,2">
            <scc:PixelSnapper>
              <ContentPresenter RecognizesAccessKey="True">
                <ContentPresenter.Content>
                  <AccessText Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Label}"
                              HorizontalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=HorizontalContentAlignment}"
                              VerticalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=VerticalContentAlignment}" />
                </ContentPresenter.Content>
              </ContentPresenter>
            </scc:PixelSnapper>
          </Border>
        </DockPanel>
      </ui:ButtonChrome>
    </DockPanel>
    <ControlTemplate.Triggers>
      <Trigger Property="DisplayMode"
               Value="Minimal">
        <Setter TargetName="Decorations"
                Property="Visibility"
                Value="Collapsed" />
      </Trigger>
    </ControlTemplate.Triggers>
  </ControlTemplate>
  
  <ControlTemplate x:Key="{x:Static scc:GameButton.GroupedHorizontallyTemplateKey}"
                   TargetType="{x:Type scc:GameButton}">
    <DockPanel LastChildFill="True">
      <Rectangle DockPanel.Dock="Left"
                 Fill="{StaticResource LCARS_OrangeGradient_Left_Right}"
                 Width="12"
                 Margin="0,0,2,0" />

      <ui:ButtonChrome x:Name="ButtonChrome"
                       Background="{StaticResource LCARS_BlueGradient_Left_Right}"
                       DisabledBackground="{StaticResource LCARS_BlueGradient_Left_Right}"
                       HoverBackground="{StaticResource LCARS_HoverBlueGradient_Left_Right}"
                       PressedBackground="{StaticResource LCARS_BlueGradient_Right_Left}"
                       RenderMouseOver="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsMouseOver}"
                       RenderPressed="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsPressed}">
        <DockPanel LastChildFill="True">
          <Border x:Name="Decorations"
                  DockPanel.Dock="Right"
                  Margin="4"
                  Padding="2"
                  Background="Black"
                  HorizontalAlignment="Right"
                  VerticalAlignment="Center"
                  Visibility="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(scc:GameControlBase.HasImage), Converter={StaticResource BooleanToVisibilityConverter}}">
            <Image Width="16"
                   Height="16"
                   Stretch="Uniform"
                   StretchDirection="DownOnly"
                   VerticalAlignment="Center">
              <Image.Source>
                <MultiBinding Converter="{scc:CoalesceConverter}">
                  <Binding RelativeSource="{RelativeSource TemplatedParent}"
                           Path="ImageSourceSmall" />
                  <Binding RelativeSource="{RelativeSource TemplatedParent}"
                           Path="ImageSourceLarge" />
                </MultiBinding>
              </Image.Source>
            </Image>
          </Border>
          <Border x:Name="ContentBorder"
                  Background="{Binding ElementName=ButtonChrome, Path=RenderBackground}"
                  Padding="16,2,16,2">
            <scc:PixelSnapper>
              <ContentPresenter RecognizesAccessKey="True">
                <ContentPresenter.Content>
                  <AccessText Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Label}"
                              HorizontalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=HorizontalContentAlignment}"
                              VerticalAlignment="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=VerticalContentAlignment}" />
                </ContentPresenter.Content>
              </ContentPresenter>
            </scc:PixelSnapper>
          </Border>
        </DockPanel>
      </ui:ButtonChrome>
    </DockPanel>
    <ControlTemplate.Triggers>
      <Trigger Property="DisplayMode"
               Value="Minimal">
        <Setter TargetName="Decorations"
                Property="Visibility"
                Value="Collapsed" />
      </Trigger>
    </ControlTemplate.Triggers>
  </ControlTemplate>

  <Style TargetType="{x:Type scc:GameButton}">
    <Setter Property="SnapsToDevicePixels"
            Value="True" />
    <Setter Property="FocusVisualStyle"
            Value="{x:Null}" />
    <Setter Property="FontFamily"
            Value="{StaticResource {x:Static scc:ClientResources.HeaderFontFamilyKey}}" />
    <Setter Property="FontSize"
            Value="{StaticResource {x:Static scc:ClientResources.HeaderFontSizeKey}}" />
    <!--<Setter Property="FontWeight"
            Value="{StaticResource {x:Static scc:ClientResources.HeaderFontWeightKey}}" />-->
    <Setter Property="Foreground"
            Value="{StaticResource {x:Static scc:ClientResources.ControlTextForegroundBrushKey}}" />
    <Setter Property="Focusable"
            Value="False" />
    <Setter Property="HorizontalContentAlignment"
            Value="Center" />
    <Setter Property="Padding"
            Value="16,0,16,0" />
    <Setter Property="Template"
            Value="{StaticResource {x:Static scc:GameButton.NormalTemplateKey}}" />
    <Style.Triggers>
      <Trigger Property="Context"
               Value="HorizontalGroupItem">
        <Setter Property="Template"
                Value="{StaticResource {x:Static scc:GameButton.GroupedHorizontallyTemplateKey}}" />
      </Trigger>
      <Trigger Property="Context"
               Value="VerticalGroupItem">
        <Setter Property="Template"
                Value="{StaticResource {x:Static scc:GameButton.GroupedVerticallyTemplateKey}}" />
      </Trigger>
      <Trigger Property="DisplayMode"
               Value="CheckBox">
        <Setter Property="FontFamily"
                Value="{StaticResource {x:Static scc:ClientResources.DefaultFontFamilyKey}}" />
        <Setter Property="Foreground"
                Value="{StaticResource {x:Static scc:ClientResources.DefaultTextForegroundBrushKey}}" />
        <Setter Property="FontSize"
                Value="{StaticResource {x:Static scc:ClientResources.DefaultFontSizeKey}}" />
        <!--<Setter Property="FontWeight"
                Value="{StaticResource {x:Static scc:ClientResources.DefaultFontWeightKey}}" />-->
        <Setter Property="Padding"
                Value="0" />
        <Setter Property="Template"
                Value="{StaticResource {x:Static scc:GameButton.CheckboxTemplateKey}}" />
      </Trigger>

      <Trigger Property="DisplayMode"
               Value="Minimal">
        <Setter Property="Template"
                Value="{StaticResource {x:Static scc:GameButton.MinimalTemplateKey}}" />
      </Trigger>
    </Style.Triggers>
  </Style>

</ResourceDictionary>